TinyChan

New reply in topic: My professor wants me to fail on purpose!!!!! >:( >:( >:(

You are not recognized as the original poster of this topic.

:

You are required to fill in a captcha for your first 5 posts. Sorry, but this is required to stop people from posting while drunk. Please be responsible and don't drink and post!
If you receive this often, consider not clearing your cookies.

Please familiarise yourself with the rules and markup syntax before posting.


Replying to Anonymous I…

Serious answer though, I don't think the fix should be that difficult, but I don't program in PHP so don't take my word for it:
$tmp_path = /*your file here*/;
$finfo = new finfo(FILEINFO_MIME_TYPE);
$real_mime = $finfo->file($tmp_path); //get the real MIME type to know its file extension (instead of pathinfo)