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!

Iskanje po podpori

Izogibajte se prevarantski tehnični podpori. Nikoli vam ne bomo naročili, da pokličete telefonsko številko ali nam pošljete osebne podatke. Sumljivo dejavnost prijavite z gumbom »Prijavi zlorabo«.

Več o tem

Trusted site list or exception to bypass C:\fakepath\ for file uploads

  • 1 odgovor
  • 1 ima to težavo
  • 5 ogledov
  • Zadnji odgovor od cor-el

more options

When attempting to upload a file using [Browse] button in a form on a website, the original filepath, which may be for example:

   C:\Users\myname\photos\pic.jpg

Shows up as:

 C:\fakepath\pic.jpg

This causes the upload to fail. Apparently, this is a feature of HTML 5 "the local path to a file should not be given to any untrusted website. Instead, the browser will replace the actual path with C:\fakepath, and the upload will fail if attempted"

The key being here " UNTRUSTED WEBSITE"

In my case, yes, it is my router webpage which is using a Cisco self-signed certificate so the https:// is deemed "insecure" - and I need to choose to proceed anyway or add exception (depending on browser) to bypass the SSL warning and pull up the webpage. So yes, I'd say it's being seen as "untrusted"

Now the suggested fix is to add the website to the list of "Trusted sites" in IE-speak. How is this accomplished in current Firefox ? I found only a forum post from 2013 that said Tools->Options->Security->Exceptions. Current Firefox "privacy & security" page has 4 [Exceptions] buttons, none of which are an obvious choice in this context!

When attempting to upload a file using [Browse] button in a form on a website, the original filepath, which may be for example: C:\Users\myname\photos\pic.jpg Shows up as: C:\fakepath\pic.jpg This causes the upload to fail. Apparently, this is a feature of HTML 5 "the local path to a file should not be given to any untrusted website. Instead, the browser will replace the actual path with C:\fakepath, and the upload will fail if attempted" The key being here " UNTRUSTED WEBSITE" In my case, yes, it is my router webpage which is using a Cisco self-signed certificate so the https:// is deemed "insecure" - and I need to choose to proceed anyway or add exception (depending on browser) to bypass the SSL warning and pull up the webpage. So yes, I'd say it's being seen as "untrusted" Now the suggested fix is to add the website to the list of "Trusted sites" in IE-speak. How is this accomplished in current Firefox ? I found only a forum post from 2013 that said Tools->Options->Security->Exceptions. Current Firefox "privacy & security" page has 4 [Exceptions] buttons, none of which are an obvious choice in this context!

Vsi odgovori (1)

more options

I think that Firefox will never show the full file path via an input type=file" attribute. This has been removed a long time ago. Bug 143220 - [FIX]Script can get the value of a file control, including the path