搜尋 Mozilla 技術支援網站

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

Learn More

Open file saves to downloads folder.

  • 4 回覆
  • 0 有這個問題
  • 2 次檢視
  • 最近回覆由 AliceWyman

more options

Hi all,

So I recently got a new laptop for work, so naturally installed the latest version of Firefox on it. I see in a previous version, they changed the way "Open file" works, so now instead of it downloading to your TEMP folder and opening the file and hiding where it is "saved", it now just SAVES the file to the Downloads folder and opens it.

This is a problem for me at work, as I essentially open 100s of files every day and my Downloads folder is just full of junk now that I would need to sort out from what is junk and what isn't. Is there a way to change this back to the way it was, or is there a way to make it so that when I tell Firefox to OPEN a file, that it saves it a different location from my default Downloads folder? This way I could simply schedule a task to auto delete files older than X days, without risking files that I actually want saved.

Thanks very much.

Hi all, So I recently got a new laptop for work, so naturally installed the latest version of Firefox on it. I see in a previous version, they changed the way "Open file" works, so now instead of it downloading to your TEMP folder and opening the file and hiding where it is "saved", it now just SAVES the file to the Downloads folder and opens it. This is a problem for me at work, as I essentially open 100s of files every day and my Downloads folder is just full of junk now that I would need to sort out from what is junk and what isn't. Is there a way to change this back to the way it was, or is there a way to make it so that when I tell Firefox to OPEN a file, that it saves it a different location from my default Downloads folder? This way I could simply schedule a task to auto delete files older than X days, without risking files that I actually want saved. Thanks very much.

被選擇的解決方法

For the record, here is how the Firefox 102 Beta release notes describe this new opt-in preference setting:


Changed | There is now an enterprise policy (StartDownloadsInTempDirectory) and an about:config pref (browser.download.start_downloads_in_tmp_dir) that will once again cause Firefox to initially put downloads in (a subfolder of) the OS temp folder, instead of the download folder configured in Firefox. Files opened from the "what should Firefox do with this file" dialog, or set to open in helper applications automatically, will stay in this folder. Files saved (not opened as previously mentioned) will still end up in the Firefox download folder.


To enable this preference, open the Configuration Editor for Firefox by entering about:config in the Firefox address bar. Find browser.download.start_downloads_in_tmp_dir in the list of preferences and double-click on it to toggle the setting to true.

WARNING: Changing Firefox preferences from the about:config page can sometimes break Firefox or cause strange behavior. You should only do this if you know what you're doing. Please read Firefox advanced customization and configuration options to learn more.

從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options

You can now enable the following preference in about:config. browser.download.start_downloads_in_tmp_dir

https://support.mozilla.org/en-US/kb/about-config-editor-firefox

有幫助嗎?

more options

Terry said

You can now enable the following preference in about:config. browser.download.start_downloads_in_tmp_dir https://support.mozilla.org/en-US/kb/about-config-editor-firefox

Would this not cause ALL downloads, whether it is Saved or Open to save in the Temp folder? Or would this default to the Temp folder and allow me to choose Downloads when I click Save?

  • EDIT* Tested and works correctly. Opened files save in the Temp folder and clicking on Save asks where to save the file, defaulting in the location you have set in options (Downloads by default).

由 Frogger60 於 修改

有幫助嗎?

more options

選擇的解決方法

For the record, here is how the Firefox 102 Beta release notes describe this new opt-in preference setting:


Changed | There is now an enterprise policy (StartDownloadsInTempDirectory) and an about:config pref (browser.download.start_downloads_in_tmp_dir) that will once again cause Firefox to initially put downloads in (a subfolder of) the OS temp folder, instead of the download folder configured in Firefox. Files opened from the "what should Firefox do with this file" dialog, or set to open in helper applications automatically, will stay in this folder. Files saved (not opened as previously mentioned) will still end up in the Firefox download folder.


To enable this preference, open the Configuration Editor for Firefox by entering about:config in the Firefox address bar. Find browser.download.start_downloads_in_tmp_dir in the list of preferences and double-click on it to toggle the setting to true.

WARNING: Changing Firefox preferences from the about:config page can sometimes break Firefox or cause strange behavior. You should only do this if you know what you're doing. Please read Firefox advanced customization and configuration options to learn more.

有幫助嗎?

more options

P.S. To learn more about this new preference setting, see Bug 1738574 Want an option to continue to use /tmp and autodelete downloads automatically opened in an application

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題