I should have been more specific.
I'm already checking file type, file size >0, and making sure file is an uploaded file (as opposed to a file already in the directory), and my little strstr() routine does an adequate job of catching files that don't have .jpg or .JPG in their names.
I'm wondering about filenames specifically. The front-end page for my site builds a javascript array of these filenames, and it seemed to have a problem with a space character in a filename. I can imagine there are a lot of bad characters like ([]{}/"'#?) that it wouldn't do to have in a filename. I'm wondering:
1 - any suggestions as to how to limit filenames? Alpha and numbers, hyphen, underscore ONLY? Is there any agreement as to what constitutes acceptable characters in a filename?
2 - any "preexisting" regexps for checking this?