搜尋 Mozilla 技術支援網站

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

Learn More

When I try to save video with URL Encoded filename, it saving with wrong filename

  • 無回覆
  • 1 有這個問題
  • 16 次檢視
more options

Whats wrong?

1. I open an url https://example.com/attachment/faaaf43950e22bd0251230bfdde60023.mp4

2. right click "Save video as"

3. video saved with wrong filename

If I look to HTTP headers, it looks like:

< HTTP/2 200

< content-type: video/mp4

< content-length: 97233423

< server: nginx/1.12.2

< content-disposition: inline; filename="c17m3-1-V2-%D0%98%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F %D0%B4%D0%B8%D1%81%D0%BA%D0%BE%D0%B2 %28%D0%BB%D0%B5%D0%BD%D1%82%D1%8B%2C %D0%B1%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D0%BD%D1%8B%2C HDD%29-%5Bdaria%5D.mp4"


so, Firefox saved this file with filename:

c17m3-1-V2-%D0%98%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F %D0%B4%D0%B8%D1%81%D0%BA%D0%BE%D0%B2 %28%D0%BB%D0%B5%D0%BD%D1%82%D1%8B%2C %D0%B1%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D0%BD%D1%8B%2C HDD%29-%5Bdaria%5D.mp4


but when I do it with Chrome, file saved with filename:

c17m3-1-V2-История дисков (ленты, барабаны, HDD)-[daria].mp4


So, Firefox don't decode url-encoded filenames.

I tryed https://addons.mozilla.org/ru/firefox/addon/download-filename-encoding/ but it can't work.

Whats wrong? 1. I open an url https://example.com/attachment/faaaf43950e22bd0251230bfdde60023.mp4 2. right click "Save video as" 3. video saved with wrong filename If I look to HTTP headers, it looks like: < HTTP/2 200 < content-type: video/mp4 < content-length: 97233423 < server: nginx/1.12.2 < content-disposition: inline; filename="c17m3-1-V2-%D0%98%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F %D0%B4%D0%B8%D1%81%D0%BA%D0%BE%D0%B2 %28%D0%BB%D0%B5%D0%BD%D1%82%D1%8B%2C %D0%B1%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D0%BD%D1%8B%2C HDD%29-%5Bdaria%5D.mp4" so, Firefox saved this file with filename: c17m3-1-V2-%D0%98%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F %D0%B4%D0%B8%D1%81%D0%BA%D0%BE%D0%B2 %28%D0%BB%D0%B5%D0%BD%D1%82%D1%8B%2C %D0%B1%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D0%BD%D1%8B%2C HDD%29-%5Bdaria%5D.mp4 but when I do it with Chrome, file saved with filename: c17m3-1-V2-История дисков (ленты, барабаны, HDD)-[daria].mp4 So, Firefox don't decode url-encoded filenames. I tryed https://addons.mozilla.org/ru/firefox/addon/download-filename-encoding/ but it can't work.

由 Eugene Chaykin 於 修改