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)

x86
Windows 2000
defect
Not set
major

Tracking

()

VERIFIED INVALID

People

(Reporter: paul.mclachlan, Assigned: alexsavulov)

Details

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.
Could have something to do with 59408 "Full path name of uploaded file not send"
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).
Mozilla is actually sending C:\Blah\myfile.txt (ie, an invalid path for the selected file).
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.
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
verifying
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.