Closed Bug 375236 Opened 18 years ago Closed 18 years ago

No Data will be sent if javascript sets the file-input to NULL

Categories

(Core :: DOM: Core & HTML, defect)

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: j.jarosch, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 When you have an Form like this one: <form action="upload.php" name="uploadform"> <input type="file" name="upload" /> <input type="submit" value="upload" /> </form> And you select a file and javascript sets the file-value to ZERO, like this: javascript:document.uploadform.upload.value=''; And you select a file the second time, and press submit, nothing will be uploaded, only the postvars will be submited... This is a great problem if you try to upload via iframes more than 1 file with only 1 form... Reproducible: Always Steps to Reproduce: 1. 2. 3.
Assignee: nobody → form-submission
Component: Form Manager → HTML: Form Submission
Product: Firefox → Core
QA Contact: form.manager → ian
Version: unspecified → 1.8 Branch
sorry, the example should be: <form action="upload.php" name="uploadform" method="post" enctype="multipart/form-data"> <input type="file" name="upload" /> <input type="submit" value="upload" /> </form>
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Jakob, you resolved this WORKSFORME. I'm assuming you're not seeing the issue anymore?
I'm quite sure there was an issue somewhere and I really tried to solve it for a long time but as nothing worked, I decided to skip that part of the project. Unfortunately I'm no longer able to reproduce this bug anymore with the steps I submitted.
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.