Closed Bug 441599 Opened 18 years ago Closed 18 years ago

Firefox 3 - Changes value returned from file input form element

Categories

(Firefox :: General, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 405630

People

(Reporter: rsolomon, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 Hi, I was testing our application and noticed that Firefox 3 changes what is returned by the value attribute of a file input form element. Then I tried to create a new simpler test page without using Struts or any fancy stuff. ( see the code below) <html> <head><title>Test File Input</title></head> <body> <form name="fileTest"> <input name="myFile" type="file"> <input type="button" value="Test" onClick="alert(document.fileTest.myFile.value)"> </form> </body> </html> In IE and Firefox 2 clicking the "Test" button would show an alert dialog that outputs the complete path and filename of the file selected by the user. In Firefox 3 only the filename is returned and NOT the path. For example: Firefox 2 & IE: C:\Windows\system32\telnet.exe Firefox 3: telnet.exe This is a problem for us as in our web application, we use the value of the file input element as a parameter to a signed Java Web Start as well as for doing file uploads to the server. Is there a work around until this is fixed ? Reproducible: Always Steps to Reproduce: See Details Actual Results: See Details Expected Results: Firefox 3 will return the entire path
It's an intentional change.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.