When I run test_script4.php on my server (localhost) I get “application/octet-stream” for the mime_content_type. I add this to the “Permitted file types” field. When I try to upload an stl file I get the following error.
ERROR: The uploaded file type is not permitted.
MIME detected by PHP: (application/octet-stream)
MIME detected by Browser: application/vnd.ms-pki.stl