Closed
Bug 219470
Opened 22 years ago
Closed 22 years ago
input type="file" does not send the full path
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: alexander.bussman, Assigned: dveditz)
References
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030914 Mozilla Firebird/0.6.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030914 Mozilla Firebird/0.6.1
If I create a form (HTML) so that users can upload a file.
I do that with input="file" to get a browser button there, but then when I send
the text that appears in the textbox after a selection the "reciever" get the
filename without the path.
Example:
Sending filename: /home/foo/pics/nicepic.jpg
Recieving: nicepic.jpg
--- example "code" to demonstrate this: ----
<from action="doit.php" method="POST">
<input type="file" name="image"></br>
<input type="submit" value="Send it!">
in doit.php:
echo $image;
Reproducible: Always
Steps to Reproduce:
1.Look in the details section :)
2.
3.
Actual Results:
Missing the path to the file
Expected Results:
The fullpath should be shown (I guess)
![]() |
||
Comment 1•22 years ago
|
||
This is done on purpose, as a security measure.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
vrfy invalid
Status: RESOLVED → VERIFIED
Component: Form Manager → Form Submission
Comment 3•20 years ago
|
||
*** Bug 287399 has been marked as a duplicate of this bug. ***
Comment 4•20 years ago
|
||
*** Bug 313364 has been marked as a duplicate of this bug. ***
Comment 5•19 years ago
|
||
*** Bug 305619 has been marked as a duplicate of this bug. ***
Comment 8•17 years ago
|
||
The last few dups turned out to be dups of bug 405630 rather than this bug. (The difference is that this bug is about what is sent to the server when the form is submitted, whereas bug 405630 is about reading the .value property using JavaScript.)
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•