본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

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

자세히 살펴보기

Firefox tries to open a certain filetype (.spk) as text and never adds an entry to the Applications tab in Options, so I have no way to change this behavior.

  • 6 답장
  • 1 이 문제를 만남
  • 20 보기
  • 최종 답변자: Mailleweaver

Since it's not in the Applications tab, I can't change how Firefox handles it. And since it automatically opens it as a text file, I have no way to download this filetype when it's linked to with javascript or flash because I can't right-click and "Save Link As." How can I make Firefox ask me how to handle the file instead of treating it as text? I've already tried deleting "mimeTypes.rdf" from my Firefox profile.

Since it's not in the Applications tab, I can't change how Firefox handles it. And since it automatically opens it as a text file, I have no way to download this filetype when it's linked to with javascript or flash because I can't right-click and "Save Link As." How can I make Firefox ask me how to handle the file instead of treating it as text? I've already tried deleting "mimeTypes.rdf" from my Firefox profile.

글쓴이 Mailleweaver 수정일시

선택된 해결법

So, there's no way to do what I want... configure Firefox to ask what to do with text/plain files instead of rendering them. I've dropped a feature request for this into the suggestion box.

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (6)

The MimeType needs to be attached to the hyperlink. No MimeType attached, and Firefox won't guess what the file is - the user needs to select the application manually.

Then how do I manually tell Firefox to save text files instead of automatically displaying them? There's no "text/plain" type for me to edit listed on the Applications tab. Screenshot attached showing the page info for one of the spk files and the Applications tab with no "text" type listed. There's another at here. I don't care if the web server owner has attached the wrong MIME type to a file so long as Firefox will give me a chance to tell it how I want it to be handled. If it's not a webpage (html, php, etc.) then Firefox should not try to render it by itself without asking. --- On a side note, how do I get this forum to treat my line returns like line returns rather than spaces?

글쓴이 Mailleweaver 수정일시

If the server sends a file as text/plain then Firefox will open the file in a tab instead of offering to download the file.

You can use "Save Link as" in the right-click context menu or set the browser.altClickSave pref to true on the about:config page. In the case of the latter you can hold don the Alt key and left-click a link to get a download dialog.

See also:

Neither of those will work in some cases. For example, go here and try to download the spk for version 4.07. It's not possible with Firefox. I'd have to click it, copy the address for the file it opens, post the address somewhere else as a link, and then right click that link to get the "Save Link as" dialog. Internet Explorer asks me what to do with the file instead of just rendering it; can't Firefox be made to do something so simple?

Yes, in cases like this where JavaScript (onclick) is used you can not use the above posted possibilities.
Luckily in this case there is a workaround possible.

The links are defined directly in the source code of that page in the function downloadfile(fileno, counter)

If you inspect the page source by prefixing the URL with the view-source: protocol then you can select the link URL with the mouse and use "Save Link as" in the right-click context menu to save the spk file.

선택된 해결법

So, there's no way to do what I want... configure Firefox to ask what to do with text/plain files instead of rendering them. I've dropped a feature request for this into the suggestion box.