搜尋 Mozilla 技術支援網站

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

了解更多

Only display fully downloaded files in the download folder

more options

Hello dear community,

I have a program that continuously monitors the download folder under Windows 11 for a specific file and retrieves it. I download this file in Firefox, but the said program gives an error.

I have noticed that when files are downloaded in FireFox, they already appear in the Downloads folder with the corresponding file extension with 0 bytes and these are then apparently swapped or merged with the .parts file.

The problem is that the mentioned program now tries to retrieve the unfinished file, which then leads to an error.

Does anyone know if it is possible to customize Firefox so that the file only appears in the download folder when the download is fully complete?

Many thanks for your help :D

Hello dear community, I have a program that continuously monitors the download folder under Windows 11 for a specific file and retrieves it. I download this file in Firefox, but the said program gives an error. I have noticed that when files are downloaded in FireFox, they already appear in the Downloads folder with the corresponding file extension with 0 bytes and these are then apparently swapped or merged with the .parts file. The problem is that the mentioned program now tries to retrieve the unfinished file, which then leads to an error. Does anyone know if it is possible to customize Firefox so that the file only appears in the download folder when the download is fully complete? Many thanks for your help :D

所有回覆 (8)

more options

I don't think there is a way to avoid Firefox using the .part files, but you can set Firefox to use the system Temp folder for those and then move the file to your designated download folder at the end. This is how Firefox worked in Firefox 97 and earlier. (I assume your monitoring software doesn't try to do anything with the Temp folder.) This option is a bit hidden:

(a) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future.

(b) In the search box in the page, type or paste browser.download.start_downloads_in_tmp_dir and pause while the list is filtered -- requires Firefox 102 or later

(c) Double-click the preference to switch the value from false to true

Does that help?

有幫助嗎?

more options

jscher2000 - Support Volunteer schrieb

I don't think there is a way to avoid Firefox using the .part files, but you can set Firefox to use the system Temp folder for those and then move the file to your designated download folder at the end. This is how Firefox worked in Firefox 97 and earlier. (I assume your monitoring software doesn't try to do anything with the Temp folder.) This option is a bit hidden: (a) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk. More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future. (b) In the search box in the page, type or paste browser.download.start_downloads_in_tmp_dir and pause while the list is filtered -- requires Firefox 102 or later (c) Double-click the preference to switch the value from false to true Does that help?


Hi jscher2000,

thank you for your reply.

I have made the change but the behavior remains the same. Enclosed I have an example file in a screenshot in which the behavior can be seen.

有幫助嗎?

more options

Are both of those files in the Temp folder now?

有幫助嗎?

more options

jscher2000 - Support Volunteer schrieb

Are both of those files in the Temp folder now?

No, the files are still in the final Download Folder destination. I will check it again in more detail. I did not restart FireFox.

有幫助嗎?

more options

jscher2000 - Support Volunteer schrieb

Are both of those files in the Temp folder now?

I have tested it again with the mentioned flag:

  • FireFox Rapid Release
  • FireFox ESR

Including browser restart

The download files & .parts files remain directly in the target download folder as shown in the screenshot above.

I suspect the flag has no effect anymore and fear that there is no other method :(

有幫助嗎?

more options

It works in Chromium based browsers, but I would like to avoid using such browsers for privacy and seczurity reasons.

I suspect that Chromium handles the download differently here.

有幫助嗎?

more options

It is possible that your security software is causing the problem. Try to disable security software temporarily to see if that makes a difference.

Boot the computer into Windows Safe Mode with network support to see if that has effect.

有幫助嗎?

more options

I see what you mean. While you are selecting the folder and finalizing the name for the file -- with "Always ask you where to save files" selected -- Firefox is downloading to a .part file in the Temp folder, but as soon as you finalize your choice, the .part file and a placeholder file are moved to the final destination folder, which occurs before you are ready for that to happen when you are downloading a large file.

I don't recall whether the files were moved so quickly in Firefox 97 and earlier; it's been a while.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題