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.
Yes, mime_check will not do anything in this case. mime_check just skips the checks against the list of allowed MIME types.
What happens in your case is that your system returns a wrong MIME type for your file. So the class cannot consider the file as an image, and therefore skips all image processing.
Try to deactivate MIME detection with the Unix file command:
$handle->mime_file = false;
But you should also check the implementation of MIME types on your system, as they are obviously wrong.Reply
What happens in your case is that your system returns a wrong MIME type for your file. So the class cannot consider the file as an image, and therefore skips all image processing.
Try to deactivate MIME detection with the Unix file command:
But you should also check the implementation of MIME types on your system, as they are obviously wrong.