Pure ASP Upload to a Variable Folder Support
How can I use Pure ASP Upload to put files in variable folders?
Using the same Upload-page for uploading files into variable folders is really easy.
First you create a form. Insert a List/Menu and fill this with the names of the variable folders you are using/want to use. The names can be entered as List Values, but can also be filled from a recordset.
Then put in a File field that will be used to select the file to upload. Set up the Insert behavior if you want to add this to a database. Then start the Pure ASP Upload 3 extension. On the General tab, fill in everything like you are used to. In the Upload Folder field, select a main folder containing the variable folders and add the text &UploadFormRequest("NameListMenuField") behind it, where you replace NameListMenuField with the name you entered for the List/Menu.
Click OK to close the Pure ASP Upload 3 window. Upload the page. If you now select a foldername from the List/Menu and select a file to upload, it is uploaded to the selected folder!
Make sure that the correct rights are set to the main folder and let these rights be inherited to any subfolders. In that case, if any names in the List/Menu are not already created as a folder, they will be created automatically if they are chosen as the folder to upload to.
That's basically it. Preview the result on a live page and see what happens!
I'd really appreciate your feedback on your results! If you have any more questions just let me know!
Comments
Be the first to write a comment
You must me logged in to write a comment.