Closed
Bug 194437
Opened 22 years ago
Closed 22 years ago
ZIP file is downloaded as an .EXE file
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 189598
People
(Reporter: tom.williams, Assigned: law)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3b) Gecko/20030218
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3b) Gecko/20030218
When I go to this site:
http://www.filelibrary.com/Contents/Multi-Platform/100/41.html
and I try to download this file:
rechtt.zip
Mozilla saves the file as a .exe file instead of a .zip file. As a result, the
file can't be opened with WinZIP.
Reproducible: Always
Steps to Reproduce:
1.Go to http://www.filelibrary.com/Contents/Multi-Platform/100/41.html
2.Try to download the file: rechtt.zip
3.It will be saved as a .exe instead of a .zip
Actual Results:
File was saved as a .exe instead of a .zip
Expected Results:
File should be saved as a .zip.
Comment 1•22 years ago
|
||
Reporter:
Have you assigned application/octet stream to an application in
edit\preferences\Navigator\helper apps ?
Reporter | ||
Comment 2•22 years ago
|
||
I have NOT changed the "application/octet stream" setting and it has defaulted to:
Description: Application
Extension: .exe
When Encountered: Save file to disk
So, I also noticed an "application/x-zip-compressed" setting which IS set to WinZIP.
Why would the MIME type NOT be "application/x-zip-compressed" since I'm
downloading a .zip file?
Peace......
Comment 3•22 years ago
|
||
default= no entry for application/octet-stream and please remove that entry.
>Why would the MIME type NOT be "application/x-zip-compressed" since I'm
>downloading a .zip file?
Because the server sends application/octet-stream for this .zip file.
Ask the server admin why he does that.
*** This bug has been marked as a duplicate of 189598 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Comment 4•22 years ago
|
||
Is it possible for a PHP download script to determine what MIME type
a file is _before_ Apache sends the HTTP headers?
Reporter | ||
Comment 5•22 years ago
|
||
> default= no entry for application/octet-stream and please remove that entry.
That did the trick... I don't know how that default entry got created since
I've never touched those settings.
Thanks!
Peace....
Comment 6•22 years ago
|
||
I don't know PHP but i know that the server sends "application/octet-stream" as
header for this .zip.
open http://webtools.mozilla.org/web-sniffer/ , enter a .zip URL from that page
and see the content-type
Comment 7•22 years ago
|
||
> Is it possible for a PHP download script to determine what MIME type
> a file is _before_ Apache sends the HTTP headers?
Yes.
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•