Uploading files
See my good notes, file upload
On Feb 6, 2013, I showed sample code that was not as good, and here it is:
- upload.php -- will not work, idea only
- download.php --
Obviously, once a file has been uploaded, the simple way to allow download is:
href="upload/myfile.jpg"
and be done with it. This file essentially does the same, but in addition it is able to count the downloads by incrementing a value in the database. The link then becomes
href="upload.php?file=myfile.jpg"