0

How to avoid displaying "C:fakepath" while file uploading. While uploading the file javacript method is called to set the selected path im my case

lspriya87
  • 21
  • 2
  • 2
  • 3
  • 1
    Does this answer your question: http://stackoverflow.com/questions/4851595/how-to-resolve-the-c-fakepath – mplungjan Mar 11 '13 at 05:27
  • Search this site for your issue if not then only create new questions... by refer your history couple of questions you asked are marked as duplicate. – Krish Mar 11 '13 at 05:50

1 Answers1

1

This is a browser security feature that is implemented.

According to the specifications of HTML5, a file upload control should not reveal the real local path to the file you have selected, if you manipulate its value string with JavaScript. Instead, the string that is returned by the script, which handles the file information is c:\fakepath.

If you still want to get rid of this fakepath you may check out this site

How To Get Rid of C:\FakePath in IE When Uploading A File to the Website

Hope it helps.

Karthik Chintala
  • 5,465
  • 5
  • 30
  • 60