Welcome to the tutorials of Pure PHP Upload 2.
In this list of tutorials you will learn how to create a file upload, restrict certain files or sizes of files from being uploaded, upload files and insert them in a database and much more...
In this list of tutorials you will learn how to create a file upload, restrict certain files or sizes of files from being uploaded, upload files and insert them in a database and much more...
In this tutorial we will explain how to do a file upload to a folder that is chosen dynamically. This mean that your folder name can vary. An example of this is when you want to have the user name as a folder name.
To make the file upload to a variable folder, you need to:
"Upload/".$HTTP_SESSION_VARS['Login']
this will create a new directory for every user that tries to upload! Non existent folders will be auto-created so this is really powerful! You only need to setup the security on the main Upload 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 retrieve a list of all files later on.
George Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. The most popular for its over high-quality Dreamweaver extensions and templates.
George is also the founder of Wappler.io - the most Advanced Web & App Builder