搜尋 Mozilla 技術支援網站

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

Learn More

When I download .csv files firefox changes the extention to /csv. How do I stop this?

  • 3 回覆
  • 1 有這個問題
  • 12 次檢視
  • 最近回覆由 jscher2000

more options

When I download reports from loseit the file downloads with the extension as /csv rather .csv and I have to manually change it. The download works fine on other browsers but Firefox is my primary browser.

所有回覆 (3)

more options

Hi ryeats, I don't think "/" is a legal character in a file name, so I don't understand why that would be in there. ??

Could you set Windows to show all file extensions (not just unusual ones), and see whether that helps? This article has the steps:

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

more options

Using that It shows no extension at all. This is what's Driving me nuts... I've included a couple pictures to show the extension problem, and why I thought it was coming as a /csv.

more options

I'm not familiar with the site, but I notice there is a , and a space in the third file name. So I have guess as to what the problem is.

To go into slight technical detail, sites often instruct Firefox to download a file using a Content-Disposition header with a value like:

attachment; filename="word word word.csv"

If the server does not include the quotation marks, Firefox stops reading at the first space, discarding the rest of the file name. This is not going to get fixed.

As a workaround, you could use an add-on. I have one that will add quotation marks during the download process so you get the whole name. When you install it, it's snoozing, and you can turn it on/off just for problem sites to avoid extra overhead on your requests.

https://addons.mozilla.org/firefox/addon/content-type-fixer/

If that lets Firefox get the whole name, I suggest telling the site about this problem so they can fix it on their end for all of their users. Or they can avoid using spaces in their file names and use _ instead.

由 jscher2000 於 修改