Closed
Bug 139224
Opened 22 years ago
Closed 22 years ago
INPUT TYPE=FILE provides bad filename to CGI
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: paul.mclachlan, Assigned: alexsavulov)
Details
Reporter | ||
Comment 1•22 years ago
|
||
Sorry, trigger happy on the enter key.
It looks like if mozilla is started in C:\Blah and the file is C:\Foo\myfile.txt
that when I call "getString" on that parameter (from my servlet), it reports the
filepath as C:\Blah\myfile.txt.
Same servlet worked file in 0.98 but was broken in 0.99 (for different reasons
than this, btw).
I'm using RC1.
Comment 2•22 years ago
|
||
Could have something to do with 59408 "Full path name of uploaded file not send"
Comment 3•22 years ago
|
||
This is almost certainly a duplicate of bug 59408.... Could you log the actual
data mozilla sends, by any chance? Are we sending "C:\Blah\myfile.txt" or
"myfile.txt" as the filename? (the latter would be correct).
Reporter | ||
Comment 4•22 years ago
|
||
Mozilla is actually sending C:\Blah\myfile.txt (ie, an invalid path for the
selected file).
Reporter | ||
Comment 5•22 years ago
|
||
Having read the comments for bug 59408, it isn't impossible that it's my program
that's doing this wrong. I'll test and try to mark this bug invalid.
Reporter | ||
Comment 6•22 years ago
|
||
My stupid fault, my .jsp was implicitly prepending it's current directory when
one wasn't supplied. Sorry!
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
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
•