Uploading Files
Some things to remember:
- Use <input type="file" /> to allow file uploads
- Make sure to set the 'enctype' attribute on the form tag (otherwise the file will not be uploaded)
- Make sure that PHP is configured properly for file uploads (check the upload_max_filesize setting in the php.ini file)
- To be safe, uploaded files should go outside of the doc root dir, but that presents some problems if you want to be able to link the the files from your pages.