Closed
Bug 556977
Opened 14 years ago
Closed 12 years ago
upload for pdf file failed cause of invalid mime-type
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 373621
People
(Reporter: timmhaas, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 upload of pdf files fail cause of wrong mime-type. mime-type is send as "application/force-download" instead of "application/pdf". Reproducible: Always Steps to Reproduce: 1. Just use an simple php upload form and upload a pdf file. use PHP to get $_FILES['filename']['type'] to reproduce the invalid mime-type. Actual Results: application/force-download Expected Results: application/pdf
Comment 1•14 years ago
|
||
Just created a test php script: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Naamloos document</title> </head> <body> <?php if(!isset($_FILES['bestand'])) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data" name="rdk" id="rdk"> <p> <input type="file" name="bestand" id="bestand"> </p> <p> <input type="submit" name="Verzenden" id="Verzenden" value="Verzenden"> <input type="reset" name="Wissen" id="Wissen" value="Herstellen"> </p> </form> <?php } else { echo $_FILES['bestand']['type']; } ?> </body> </html> This was the result of uploading a pdf file: application/pdf
Just tried your script to verify that the problem still occurs. Same problem, sorry. I also checked IE, IE works fine for me. So needs to be a Firefox issue. I am for sure it is caused by the new update. Are you on a Windows 7 64-Bit system by the way? Yesterday I worked the whole day at a order processing script (tried it a hundred times) before Firefox automatically updated. After the update, the problem occured. P.S: I also tried different PDF files.
Comment 3•14 years ago
|
||
I'm running Firefox 3.6.3 on Windows Vista 32-bit Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 - Build ID: 20100401080539
Comment 4•14 years ago
|
||
I have the same problem here. I'm using Firefox 3.6.3 on a Windows 7/32-bit system. My PDF-files are uploaded as text/html, while being uploaded as application/pdf on Internet Explorer 8. The PDF files are created using Adobe InDesign CS3 and edited using Adobe Acrobat 8 Professional. Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
Duplicate of/related to bug 512982 comment 8 or bug 491982 -> Core bug 373621?
Comment 6•14 years ago
|
||
This bug has also been reported in the Ubuntu bug tracker. So it happens on Linux as well as Windows. Here is the Ubuntu bug report https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/84880
See Also: → https://launchpad.net/bugs/84880
Comment 7•14 years ago
|
||
Same as 547234 and as well on Mac OS X.
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•