We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

ZIP Files Downloading as PDFs

more options

Background: I'm currently tutoring full-time, and the site I use allows tutors to download the session afterward as a .zip folder. In the past this has been incredibly helpful, because it allows me to review my lessons and improve my planning.

Current Issue: For some reason Firefox now appears to be misinterpreting these ZIP files as PDFs. When I begin the download, Firefox gives me the option to either open (as PDF) in Firefox, or to download. At this point (before any download occurs) Firefox has already labeled the file as a PDF. If I open it in Firefox, obviously it doesn't work (being a .zip folder.) If I download it, Windows Explorer usually lets me explore it as a .zip folder, but recently, about 10% of the files I download (even if I never open them as a PDF) still download as a PDF and are therefore inaccessible.

Fixes: I've tried downloading instead of opening with Firefox. This works about 90-95% of the time; not sure what the issue is. I've tried re-assigning the file type in Windows Explorer, to no avail. I've adjusted Firefox preferences (from "always ask" to "use Windows Explorer.") I'm not sure this will help, but will try.

Any advice? I hate to sound fussy, but I'm pretty meticulous about saving my lessons and hate losing that much data on my students. While I can save each file independently, it takes much longer. Thank you!

Background: I'm currently tutoring full-time, and the site I use allows tutors to download the session afterward as a .zip folder. In the past this has been incredibly helpful, because it allows me to review my lessons and improve my planning. Current Issue: For some reason Firefox now appears to be misinterpreting these ZIP files as PDFs. When I begin the download, Firefox gives me the option to either open (as PDF) in Firefox, or to download. At this point (before any download occurs) Firefox has already labeled the file as a PDF. If I open it in Firefox, obviously it doesn't work (being a .zip folder.) If I download it, Windows Explorer usually lets me explore it as a .zip folder, but recently, about 10% of the files I download (even if I never open them as a PDF) still download as a PDF and are therefore inaccessible. Fixes: I've tried downloading instead of opening with Firefox. This works about 90-95% of the time; not sure what the issue is. I've tried re-assigning the file type in Windows Explorer, to no avail. I've adjusted Firefox preferences (from "always ask" to "use Windows Explorer.") I'm not sure this will help, but will try. Any advice? I hate to sound fussy, but I'm pretty meticulous about saving my lessons and hate losing that much data on my students. While I can save each file independently, it takes much longer. Thank you!

由ajic.ajic于修改

被采纳的解决方案

This is strange, Firefox shouldn't treat a download as a PDF unless a site sends

Content-Type: application/pdf

As long as the site is sending the ZIP content type, Firefox should take it at its word.

That said, even if Firefox modifies the file extension, the internal file format remains ZIP. Have you tried renaming the saved file from whatever.pdf to whatever.zip to see whether that allows it to be opened? If your Windows hides common file extensions, you can turn that off and have it show you all file extensions for easier renaming. This article has the steps:

https://www.bleepingcomputer.com/tutorials/how-to-show-file-extensions-in-windows/

定位到答案原位置 👍 1

所有回复 (5)

more options

What do you have set here? see screenshot

more options

选择的解决方案

This is strange, Firefox shouldn't treat a download as a PDF unless a site sends

Content-Type: application/pdf

As long as the site is sending the ZIP content type, Firefox should take it at its word.

That said, even if Firefox modifies the file extension, the internal file format remains ZIP. Have you tried renaming the saved file from whatever.pdf to whatever.zip to see whether that allows it to be opened? If your Windows hides common file extensions, you can turn that off and have it show you all file extensions for easier renaming. This article has the steps:

https://www.bleepingcomputer.com/tutorials/how-to-show-file-extensions-in-windows/

more options

jonzn4SUSE said

What do you have set here? see screenshot

I don't believe I have that particular option. On that page I appear to have 2 relevant rows: Compressed (zipped) Folder: set to Use Windows Explorer (default) ZIP file: set to Save File

more options

jscher2000 said

This is strange, Firefox shouldn't treat a download as a PDF unless a site sends Content-Type: application/pdf As long as the site is sending the ZIP content type, Firefox should take it at its word. That said, even if Firefox modifies the file extension, the internal file format remains ZIP. Have you tried renaming the saved file from whatever.pdf to whatever.zip to see whether that allows it to be opened? If your Windows hides common file extensions, you can turn that off and have it show you all file extensions for easier renaming. This article has the steps: https://www.bleepingcomputer.com/tutorials/how-to-show-file-extensions-in-windows/

This is awesome, thank you so much! It definitely has the contents there, because when I change the extension using these steps, it's a completely usable ZIP folder. Hopefully whatever is messing up the process eventually gets fixed, but for the moment I'm just excited to be able to use those files again.

Thanks!

more options

Thank you for the update.

It would be useful to know what Content-Type the server is sending when the responses are not interpreted as expected. However, it sounds like you might be a bit busy to investigate that further yourself, so please mention the issue to the relevant IT team managing that platform to see whether they can replicate and resolve the issue.