Pure ASP Upload - Upload to physical folder
Upload to physical folder - upload your database file
In this tutorial we will explain how to do a file upload to a folder that is not relative to your site. This mean that your folder can be located in a very different directory or disk on the server. An example of this is when you want to upload your database.
How to do it
To upload to a physical folder you need to:
- Start with basic upload page
Start with an upload page where you have Pure ASP Upload on it. If you haven't done it yet, go through the Simple file upload tutorial.
- Open the Pure ASP Upload dialog
Select the Pure ASP Upload dialog by double clicking it on the Sever behaviors list.
- Choosing the variable folder
- Save and done
When you need to use a variable folder, you can enter the full path - including the drive in the Upload Folder field. For example:
this will upload the files to this path on the server. You only need to setup the right security on this folder, for more info how to do this read the Setting the folder security on your server tutorial.
You might also check the Prefix With Full Path option. This option will store the full path in your database (if you are saving the filename in a database). So it will be easy to reprieve a list of all files later on.
Save your page and upload it to your server, and you are done! Go to your website and test it - you should be able to upload any file to a physical folder.