The file type header is defined by the browser handling the uploading. The fix for this appears to be to use mime_content_type on the file after it's been uploaded instead of relying on $_FILES.
echo mime_content_type('php.gif') . "\n"; //image/gif echo mime_content_type('test.php'); //text/plain
No comments:
Post a Comment