How To Handle File Uploads With PHP

Just an FYI…

image_type_to_extension() is a PHP 5 function.

Unfortunately we are still running 4.1.10.

Just another good example for upgrading. My list gets longer everyday. :frowning:

Some good points. I like the regex that checks for MIME types across multiple browsers.