搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Downloads Do Not Save With Correct File Extenstion

  • 4 回覆
  • 7 有這個問題
  • 6140 次檢視
  • 最近回覆由 jscher2000

more options

Hi,

Firefox is defaulting to saving all downloaded files in .PDF Format when the file is not a .PDF file. For example, if you goto this link http://usa.denon.com/us/product/hometheater/avreceiversht/avrx4100w Downloads Denon S Series - X Series RS232 IP Protocol 2014 The file being downloaded is a .xlsx. However, Firefox will only save it as a .pdf file. When you save and then try and open you get a corrupted PDF file. Of course it is not corrupted FireFox is defaulting to PDF.

How do you get Firefox to download a file and save in the actual format of the file?

Chrome does this with no extra settings or setup. Download and save the file in Chome it saves as .xlsx file.

被選擇的解決方法

I don't know how to feel about it. Mozilla often doesn't fix things when the problem is that websites do not follow proper techniques, to push developers to become more standards compliant. IE and Chrome have more of an attitude that they will protect users from some incorrect practices even if that allows sites to be a bit lazy. When more people used Firefox, I think Mozilla's way was helpful and had the intended effect, but now, I wonder whether it still is/does.

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

I uninstalled Firefox and reinstalled. Same problem. I Refreshed Firefox. Same problem.

more options

I see the problem with that link, and this is something that probably needs to be fixed on the server.

The first screen shot shows that Firefox thinks it is a PDF and that its name is Denon, to which Firefox is going to add .pdf. This is not what the site intended.

The second screen shot shows the source of the confusion. The site is informing Firefox that the file is application/pdf, which is why Firefox think it is a PDF. The site is sending a filename that ends with .xlsx BUT it is sending the file name with spaces. Firefox only reads to the first space and truncates the file name.

Ideally, the site would fix both of those things. However, simply fixing the spaces would give you the behavior of Chrome, which is to save the file with its intended extension even though the site said it is a PDF.

I can't recall whether there is any workaround/add-on for this on the browser side (to force Firefox to read past the first space in the filename parameter).

more options

Appreciate the helpful response!! I contacted Denon with your recommendations and hopefully they will resolve on the server side to avoid this problem in the future.

One thing I do see quite often is that FireFox usually seems to have the most trouble with attachments, opening PDF's, etc. and Google Chrome seems to be the most reliable. I prefer Firefox and use it as my default, but I find myself using Chrome when I run into the above type issues.

Thanks again for the help!!

more options

選擇的解決方法

I don't know how to feel about it. Mozilla often doesn't fix things when the problem is that websites do not follow proper techniques, to push developers to become more standards compliant. IE and Chrome have more of an attitude that they will protect users from some incorrect practices even if that allows sites to be a bit lazy. When more people used Firefox, I think Mozilla's way was helpful and had the intended effect, but now, I wonder whether it still is/does.