• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get the file path from HTML input form in Firefox 3

 
Edukondalu Avula
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In IE7 (and probably all famous browsers, including old Firefox 2), if we submit a file like 'C:\folder1\folder2\folder3\filename' it works properly and gives the full path to the file and the filename.

In Firefox 3, it returns only 'filename', because of their new 'security feature' to truncate the path, as explained in Firefox bug tracking system (https://bugzilla.mozilla.org/show_bug.cgi?id=143220)

I have no clue how to overcome this 'new feature'.
Can anyone help to find a single solution to get the file path both on Firefox 3 and IE7?

Thanks in advance....

Edukondalu Avula
[ October 24, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firefox is doing it right. IE is exposing more information than it should, which could result in security issues.

There is no way to force the standards-compliant browsers to expose the path info. If you explain why you think you need this info, perhaps another approach could be suggested.
[ October 24, 2008: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!