I've come to the end of the first module for my web site, and I think I've learned an awful lot in the last month since I picked up PHP again. All the basics, a lot about security, form handling, sessions, and most of all OOP (I lurv OOP). But now that I'm moving on to the next module, I feel like an infant again. Pulling out all my books, got the manual open in four different tabs, and here we go...
I was wondering if anybody could point me in the direction of any bookmarks they have for dealing with files and file uploads. I don't want pre-built classes for this, I've looked at a couple, and while they're really powerful, they're also bloated beyond what I want. So I'm looking for good tuts, resources and information.
On that note, while I'm playing around with a basic form and the $_FILES superglobal to get comfortable with it, I was curious -- is there any way to check a file for any information before it's uploaded? For example, to make sure if I want a 30kb or less file, they aren't trying to upload a 2mb file? I know how to check this once the file is uploaded, and it's easy to throw em back an error, but it seems like a waste to let somebody upload a large file only to be caught with "um, you're dumb, go back and read the instructions.". I won't word it like that on my production server, just the test one, but you get the idea.