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.
more info about the class
$uploaded->allowed[] = mime_content_type($uploaded->file_src_pathname);
but, as usual another question
the site this is for will be updated by non-technical staff.
Is there a way the MIME type can be automatically determined?
i tried
but it did not work
Sorry I am relatively new to php and MIME.
Thanks
Ric