class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
This is certainly very useful information for those of us new to uploading. Thanks for the reply.
And I've also learned that the file size checking can happen both server and client side. The class upload demo only checks AFTER the file has been uploaded, thus leaving things open to crashing on really big files upon running out of PHP memory. I've learned you can also do some simple non-JS client side checking by putting a hidden input html before the "file" input html: <input name="MAX_FILE_SIZE" value="150000" type="hidden" /> This will stop the upload client-side, and I would think was an essential part of any upload form.
It is so hard to find all these little details by simply reading documentation.Reply
And I've also learned that the file size checking can happen both server and client side. The class upload demo only checks AFTER the file has been uploaded, thus leaving things open to crashing on really big files upon running out of PHP memory. I've learned you can also do some simple non-JS client side checking by putting a hidden input html before the "file" input html:
<input name="MAX_FILE_SIZE" value="150000" type="hidden" />
This will stop the upload client-side, and I would think was an essential part of any upload form.
It is so hard to find all these little details by simply reading documentation.