Also: after searching devnetwork, google, and the php manual I've come across these methods for validating files:
finfo_file()
something with the image library (get image size?)
check file extensions (not very good way to validate, but might as well throw it in too)
Are there other methods for validation? Right now I'm testing on a linux server, but I'm going to have to put this on a windows server too.