Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How do I remove fakepath?

  • 6 个回答
  • 2 人有此问题
  • 162 次查看
  • 最后回复者为 yoshilink
  • 已存档

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)

Please give us more details.

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.

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?

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.

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

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!