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 技術支援網站

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

了解更多

Prevent Firefox from deleting ".part" files after failure

  • 2 回覆
  • 1 有這個問題
  • 30 次檢視
  • 最近回覆由 TheFish1

more options

When you download a file - let's say it is a video file - and you start watching before the download has finished, Firefox will not be able to rename the ".part" as supposed when the download is complete. This is expected behavior, because the file is locked by another application.

However, Firefox seems to think that the *download* has failed, not the *rename*. Problem is that Firefox will delete the absolutely correctly downloaded ".part" file on the next start, which is pretty annying.

Question: Can we prevent firefox from deleting ".part" files? Firefox should never delete a ".part" file.

Irrespectively if this is possible or not, FiIrefox should distinct between "failed download" and "failed rename". In the latter case, Firefox should only try to rename the file again on next startup (instead of re-downloading, which will kill the .part file).

Regards, Till

When you download a file - let's say it is a video file - and you start watching before the download has finished, Firefox will not be able to rename the ".part" as supposed when the download is complete. This is expected behavior, because the file is locked by another application. However, Firefox seems to think that the *download* has failed, not the *rename*. Problem is that Firefox will delete the absolutely correctly downloaded ".part" file on the next start, which is pretty annying. Question: Can we prevent firefox from deleting ".part" files? Firefox should never delete a ".part" file. Irrespectively if this is possible or not, FiIrefox should distinct between "failed download" and "failed rename". In the latter case, Firefox should only try to rename the file again on next startup (instead of re-downloading, which will kill the .part file). Regards, Till

所有回覆 (2)

more options

Hi Till, the problem that comes to mind is that Firefox may not have a way to determine whether the .part file is complete at startup; I don't know whether enough contextual information is retained (for example, whether all the bytes promised by the server were received).

You can submit your suggestion in a number of ways, including:

more options

I've filed a bug report. Firefox should remember the kind of the error together with downloaded files so that it can handle more sensible on next start.

Regarding my main question: Is it possible to prevent ".part" file erasure using a setting? Couldn't find anything in about:config but maybe there is something?