为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to change/set default "box selection" in download/open file menu?

  • 5 个回答
  • 14 人有此问题
  • 11 次查看
  • 最后回复者为 axinos

more options

I have set downloads option in options-general to "Always ask me where to save files". This is making a menu pop-up with option "Open with" and "Save file" every time I want to download something, and thats what I want. The thing is that depending on type of file I want to download the box for "open file" is ticked for some files like .doc and .xsp files, and the box "save file" is ticked for other files like .zip files.

Sometimes Im downloading many separate files in a short time and it is annoying to to tick "save file" and select ok instead if having "save file" already ticked and just clicking ok.

How can I change this behavior?

My setup: Firefox 26.0 Download status bar All-in-one sidebar

Example pictures: http://imagizer.imageshack.us/v2/800x600q90/14/sqx4.png http://imagizer.imageshack.us/v2/800x600q90/13/8kwa.png

I have set downloads option in options-general to "Always ask me where to save files". This is making a menu pop-up with option "Open with" and "Save file" every time I want to download something, and thats what I want. The thing is that depending on type of file I want to download the box for "open file" is ticked for some files like .doc and .xsp files, and the box "save file" is ticked for other files like .zip files. Sometimes Im downloading many separate files in a short time and it is annoying to to tick "save file" and select ok instead if having "save file" already ticked and just clicking ok. How can I change this behavior? My setup: Firefox 26.0 Download status bar All-in-one sidebar Example pictures: http://imagizer.imageshack.us/v2/800x600q90/14/sqx4.png http://imagizer.imageshack.us/v2/800x600q90/13/8kwa.png

所有回复 (5)

more options

See:


Current Firefox versions remember the download directory based upon the URL, so if the URL changes then the default folder may be chosen if there hasn't been selected a download folder before for that server.

You can disable this feature to remember the download directory via the Boolean pref browser.download.lastDir.savePerSite on the about:config page. The browser.download.lastDir.savePerSite pref doesn't exist by default (it is a hidden pref), so you need to create it.

Create a new Boolean pref with the name browser.download.lastDir.savePerSite and set the value to false.

You can delete the content-prefs.sqlite file in the Profile Folder to only remove settings stored in this file and keep the exceptions that are stored in permissions.sqlite that would be lost if you clear the "Site Preferences" via Clear Recent History.

more options

Thanks for reply cor-el, it was actually interesting but I cant see that it has anything to do with my question or maybe Im just slow. I know this is my fault, the headline and my description is not very clear...sry

Let me try again.

My question is:

In the "Opening <filename>" dialog, why does some file type repeatedly have the selection box "open file" marked, while other files have "save file" marked?

Example: http://kb.mozillazine.org/images/FxOpening-doc.png

由tar1973于修改

more options

This still has to do with file actions that you set and the defaults that are currently set on your computer, so the articles do apply.

I assume that if there is a default application for this MIME type or file extension or you have previously set an action that Firefox choose the open with selection.
If this is not the case then Firefox doesn't know what program to propose and offers to save the file.
There are also generic MIME types like application/octet-stream or a content-disposition: attachment header that will always have the save file choice selected.

There is a MIME database key in the registry (HKEY_CLASSES_ROOT\MIME\Database\Content Type\) that links a file extension to a MIME type.

more options

Hi again

ohhh sry my bad. When I cant even spot the relevance after reading through the short articles, this is probably too complicated for me :(

Anyway, I tried the two things you wrote about earlier, both the browser.download.lastDir.savePerSite and content-prefs.sqlite when clearing history. But nothing changed, but Im not 100% sure of my implementation.

Also looked into (HKEY_CLASSES_ROOT\MIME\Database\Content Type\) but it did not see anything I could use.

About: Current Firefox versions remember the download directory based upon the URL, so if the URL changes then the default folder may be chosen if there hasn't been selected a download folder before for that server.

Im not sure how this work, but it remember download directory but my choice clicking "save file" is forgotten. It always go back to "open file" again for next download.

Maybe this whole subject is to complicated for me, but thanks for trying to help. So unless someone have a quick simple fix for this I give up...

more options

FIREFOX IS GETTING WORST ANY NEWER VERSION FROM FIREFOX v25 UPTO NEW FIREFOX v29

THE SAME PROBLEM REMAIN.

PLEASE ANYBODY TO TELL ME HOW I CAN DISABLE THE STUPID FEATURE "Save As wizard" I HAVE ALREADY DONE: browser.download.lastDir.savePerSite=false

FIREFOX IS USELESS , I 'M USING ONLY MAXTHON

由axinos于修改