If I upload a file to a website, can they see the folder name it was located in, and the path?

  • 1
    This question is offtopic, as it does not relate to ubuntu in paticular, but is a question related to webdevlopment. The correct place to ask this kind of question would be stackoverflow.com. But to answer your question: No.
    – mondjunge
    Jul 5, 2018 at 8:08

2 Answers 2


Firefox and other major browsers implement a fakepath mechanism:

On getting, return the string "C:\fakepath\" followed by the name of the first file in the list of selected files, if any, or the empty string if the list is empty.

So the site will see something like C:\fakepath\filename.

  • Good asnwer, sorry I already marked the other one.
    – jaxxy
    Jul 5, 2018 at 9:19

No, the path to the file (including the directory it is in) is hidden, or truncated. All they will see is the name of the file after /fakepath/filename.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.