搜尋 Mozilla 技術支援網站

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

Learn More

How to save an SVG file without opening it in a browser tab first?

  • 3 回覆
  • 2 有這個問題
  • 15 次檢視
  • 最近回覆由 cor-el

more options

Sometimes I have to download very large SVG files. These files are generated dinamically by a web server, when I select some options in a web form. Thus, there is no link to click: an action on the web page causes Firefox to spawn a new tab and try to open the SVG file inside it. The file can be very large, and Firefox can get stuck in trying to display it, before I can right-click on the image and select "save as" to get the file I'm interested in.

I would like that, upon requesting an SVG web resource, Firefox ask me how I want to deal with the resource: displaying it online, opening with an external application, or saving it - exactly in the same fashion as with PDF files.

Thank you!

Sometimes I have to download very large SVG files. These files are generated dinamically by a web server, when I select some options in a web form. Thus, there is no link to click: an action on the web page causes Firefox to spawn a new tab and try to open the SVG file inside it. The file can be very large, and Firefox can get stuck in trying to display it, before I can right-click on the image and select "save as" to get the file I'm interested in. I would like that, upon requesting an SVG web resource, Firefox ask me how I want to deal with the resource: displaying it online, opening with an external application, or saving it - exactly in the same fashion as with PDF files. Thank you!

所有回覆 (3)

more options

Hi lallulli, You can control or add a preference as what to do with an svg file in the Applications section of preferences:

more options

If you want to see an SVG file as text use the view-source protocol e.g. view-source:http://upload.wikimedia.org/wikipedia/commons/1/18/SVG_example7.svg

Support for SVG files is built in, you can't set it using the Applications sction of preferences

more options

The only way to get Firefox to offer to save the SVG image would be to force a content type that Firefox doesn't recognize as supported natively.