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.
I found problem On my local mime_content_type function return text/plain for PNG files.
This is a apache bug, here is details http://mail-archives.apache.org/mod_mbox/www-apache-bugdb/200003.mbox/%3C20000310000045.59185.qmail@locus.apache.org%3EReply
When I set allowed file types like below, PNG files does not accept.
I have tried to test different png files but always rejected by class.
I can't find solution for png files, can anyone tell me why allowed option not working for png files ?
Second problem
For example if I remove allowed option png files accepted but file extension was changed to .txt ?
Thank you.
On my local mime_content_type function return text/plain for PNG files.
This is a apache bug, here is details http://mail-archives.apache.org/mod_mbox/www-apache-bugdb/200003.mbox/%3C20000310000045.59185.qmail@locus.apache.org%3E