Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

CSV-file downloaded with PDF-extension

more options

Hi, I'm running into an issue where when I download a CSV-file from a website it's downloading as a pdf when it should be downloading as a csv. If I after the download rename the file back to the csv-extension, I can open it in Excel. Any ideas? I run Linux on my laptop.

Hi, I'm running into an issue where when I download a CSV-file from a website it's downloading as a pdf when it should be downloading as a csv. If I after the download rename the file back to the csv-extension, I can open it in Excel. Any ideas? I run Linux on my laptop.

모든 댓글 (2)

more options

What site is this?

도움이 되셨습니까?

more options

This could occur if the website mistakenly identifies the file as a PDF using

Content-type: application/pdf

However, that would be pretty strange. It's more common for websites not to have any specific Content-Type (also known as MIME Type) for CSV files, and to identify them either as plain text or as generic binary content.

Occasionally sites will improvise a Content-Type that Firefox has seen before and associated with a different file extension, and this *could* cause Firefox to wrongly assume that the download's file extension needs to be corrected. You can turn off the file extension fix-up feature for non-media files and see whether that makes any difference. Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future.

(2) In the search box in the page, type or paste browser.download.sanitize_non_media_extensions and pause while the list is filtered

(3) Double-click the preference to switch the value from true to false

Then test the download again and see whether Firefox preserves the exact file name assigned by the site.

Did that make any difference?

도움이 되셨습니까?

질문하기

글에 답글을 달기 위해서는 계정으로 로그인해야만 합니다. 계정이 아직 없다면 새로운 질문을 올려주세요.