"C:\fakepath" issue with HTML5 file upload control in Internet Explorer RRS feed

  • Question

  • Hi Team,

    We are developing Office apps, which consists of HTML5 and JavaScript pages. To protect business logic, we are planning to obfuscate source codes (especially JavaScript files) with free/paid tools.

    As per functionality of the office app, we browse file(s) and get the file path. With original source code, we are able to get file path correctly. But with obfuscated code (obfuscated using free/paid tools), we are getting file path as “C:\fakepath\<FileName>” irrespective of file location.

    We tried with sample HTML5 page and one JavaScript file with browse functionality without office app context. Its same behavior.

    We found that as per specifications of HTML5, file upload control should not reveal the real local path (details…). If this is the case, why it is showing correct path with original source code? Our requirement is to get real local path of file when JavaScript is obfuscated. How to get the correct path (without doing modification in IE settings)?

    Thanks in Advance

    Rakesh Ranjan

    Follow me @ Blog | Facebook | LinkedIn | Twitter

    Tuesday, September 17, 2013 6:18 AM


  • I think, this is not related to Windows XP. Correct?

    Arnav Sharma | Facebook | Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    • Marked as answer by RakeshRanjan Tuesday, September 17, 2013 10:16 AM
    Tuesday, September 17, 2013 9:41 AM