Closed Bug 442207 Opened 16 years ago Closed 16 years ago

The path of file removed after submitting file using <input type="file">

Categories

(Firefox :: File Handling, defect)

3.0 Branch
x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 405630

People

(Reporter: edmondcmho, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9) Gecko/2008052906 Firefox/3.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9) Gecko/2008052906 Firefox/3.0

Our application has problem and fails to load the file in newly released FF3. We have prepared a testing page as follows,

<html><head><title>File Test</title></head>
  <body>
    <script language="JavaScript">
    <!--
       function test(f) {
         alert("File selected is: " + f.filename.value);
       }
    //-->
    </script>
    <form>
      Filename Input: <input type="file" name="filename">
      <input type="button" value="Submit" onClick="test(this.form);"><br>
    </form>
  </body>
</html>

When we test the above page, we select a file (e.g. c:\temp\abc.txt) and submit. We found that the path of the file was removed and only alert the file name only (i.e. abc.txt only)


Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Actual Results:  
FF3 only return the filename without absolute path.

Expected Results:  
We expected the value of the input type="file" should return the filename with absolute path as previous version of FF.
Severity: normal → major
Version: unspecified → 3.0 Branch
Severity: major → critical
Dupe of bug 405630
Severity: critical → normal
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.