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

搜尋 Mozilla 技術支援網站

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

了解更多

How do I remove fakepath?

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

more options

I need to be able to upload files that do not show C:\fakepath\ in the filename.

I need to be able to upload files that do not show C:\fakepath\ in the filename.

所有回覆 (6)

more options

Please give us more details.

more options

Our computer is a Mac running Mac OS version 10.12.4. The files being uploaded are small to medium sized microsoft word files with .docx and .doc file extensions. The uploads destination is http://scribemanager.com which is logged into via a secure username and password portal. The issue is that after upload, the files cannot be accessed by the clients that need to see the information contained within the file. There appears to be a "C:\fakepath\" added before the actual file name which is keeping the files from being viewed by others after upload.

How do we go about removing the "C:\fakepath\" from the file name?


Thank you for any and all help.

more options

When a file is up/down loaded, the name/extension should not get changed. It could be a website issue. Contact their support.


Start Firefox in Safe Mode {web link} by holding down the <Shift> (Mac=Options) key, and then starting Firefox.

A small dialog should appear. Click Start In Safe Mode (not Refresh). Is the problem still there?

more options

I'm going to contact the website for support.

I did start in safe mode but will be unable to test this until tomorrow.

Thanks for your help.

more options

Yes, please contact the site!

Firefox 53 finally conforms to the long-standing behavior of IE and Chrome in adding C:\fakepath\ before the file name for <input type="file">. See:

They probably already have the code they need to strip it off. Also, you can refer them to this article if they need suggested browser-neutral/version-neutral code:

https://html.spec.whatwg.org/multipage/forms.html#fakepath-srsly

more options

Thank you for your suggestions! I did contact the website and gave them the link you provided. They are looking into it. Hopefully this will be the fix!