This project has moved. For the latest updates, please go here.

change upload folder

Mar 5, 2009 at 12:57 PM
Hi. This is a great control.

Can you please tell me what is the easiest method for dynamically changing the upload folder. My site will be changing the folder name based on a folder selected by the user.

Mar 5, 2009 at 6:48 PM
You're not able to configure the upload folder dynamically at this time. I think it's better to only allow uploads to 1 directory, so you can set the right security permissions on that directory. If you make it dynamic, maybe it is will try uploading to a directory that does not exist, is not tested etc. The user gets an error and you would never know about it.

If you do want files in specific user directories, my advice is to use the CustomParam parameter. You can change this parameter dynamically using the initParams or javascript. This parameter is also available in the webservice (server side). You can use this parameter to store the name of a folder and then let the webservice move the uploaded file to that folder when the upload is finished.

It's the same result, and you have more server side control over it.

Let me know if this willl work for you.