Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

how do I stop firefox from downloading opened files to the Temp folder

  • 11 回覆
  • 50 有這個問題
  • 1 次檢視
  • 最近回覆由 blortz

more options

I have set firefox to download files to my "Downloads" folder, however, whenever I choose to Open a file instead of saving them, this file has to be downloaded first. I want firefox to stop saving these files to the temp folder and downloads them to my Downloads folder.

I have set firefox to download files to my "Downloads" folder, however, whenever I choose to Open a file instead of saving them, this file has to be downloaded first. I want firefox to stop saving these files to the temp folder and downloads them to my Downloads folder.

所有回覆 (11)

more options

Not sure if you can do that, but you can move files from the temp directory to other directories.

more options

that's exactly what I don't want to do, i want the opened files to be stored on my downloads folder, automatically so I don't have to go to Temp and move them.

more options

Specifically, what types of files are you referring to?

more options

files marked as "open", the ones that open automatically after they're downloaded, zip files for instance .

more options

Firefox uses the TEMP and/or TMP paths set in Windows (environment variables) to determine the folder for storing a file to be launched by external applications. Since you probably do not want to change this for all Windows programs (e.g., program installers), I can imagine a few workarounds.

One might be to find an extension that modifies how Firefox's Open/Save/Cancel dialog works.

Another might be to find a way to pass Firefox different environment variables than those set at the Windows level.

However, I did a websearch and didn't find such an extension or such a hack...

That said... if you choose download instead of open, you can use the "green arrow" and download panel to open the file quite quickly in the default application for that file type. Will that work for now?

more options

well if there's no other choice then I'll have to save things instead of just opening them.

more options

A possibility could be to launch Firefox via a cmd.bat file using the start command that sets the TMP and TEMP environment variables when launching Firefox, but that will (can) cause a lot of files to appear in that location.

more options

you mean change the entire temp folder, not only the files marked as Open. well I think that what I'm going to do is set the Temp folder as my default download folder and then make a shortcut. it would be nice if in the future the firefox team could fix this, allowing opened files to be save in downloads. thanks for the replies to all of you.

more options

Oops. Let me try again.

由 bootsattheboar 於 修改

more options

If you select to download a file, it goes to the chosen download folder. If, however, you choose to open the file instead, the system thinks you just want to look at the file and not save it. Therefore, it is a TEMPORARY file, and that is how it is stored. Note that temporary folders get cleaned out now ant then.

more options

I just confirmed it. When you choose Save, the file goes into the Downloads folder. When you choose Open, the file goes into the Temp folder. Thanks to the two gentlemen who pointed this out.