Forums

File Uploads linked to choices made in the form

woogygun 29 Jul, 2010
Is it possible to upload a file to a given directory based on what is selected in the form. for example

a simple drop down with 2 options. Option A and Option B.

if option A is chosen it will upload to directory A
if option B is chosen it will upload to directory B
GreyHead 29 Jul, 2010
Hi woogygun,

You can certainly do this by moving the file after it is uploaded. Put the code in one of the OnSubmit boxes.

You *might* be able to do it using a dynamic file name in the File Uploads box - I'm not sure if this will let you specify a folder as well as the file name.

Bob
woogygun 29 Jul, 2010
Hi Bob thanks for the speedy reply.

im not the most code friendly developer, but i can find my way around when i need to.

could perhaps explain a bit more in detail?
GreyHead 28 Aug, 2010
Hi woodygun,

Sorry to be so long replying. I've now worked out a couple of ways to do this the outlines are in a post here where ther is also a more complicated solution from gorangrooves. I've written them up in more detail along with other file and folder code in a How-to doc you ce get for a few dollars.

Bob
This topic is locked and no more replies can be posted.