Closed Bug 530065 Opened 15 years ago Closed 15 years ago

File upload POST in multipart/form-data is missing octet-stream/filename if no file is selected

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 529859

People

(Reporter: w.angenent, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 Build Identifier: "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2b3) Gecko/20091115 Firefox/3.6b3 If no file is picked on a file upload form, the empty content of the file is not sent. version 3.5 would have something like: -----------------------------9849436581144108930470211272 Content-Disposition: form-data; name="my_name"; filename="" Content-Type: application/octet-stream -----------------------------9849436581144108930470211272 In version 3.6b3 the whole above section is missing. Reproducible: Always Steps to Reproduce: 1. Go to a web page with a <form method="post" enctype="multipart/form-data" ...> with a standard file upload form with <input type=file...> 2. Submit the form without choosing a file Actual Results: The POST data will be missing the section with the form-data corresponding with the file upload's data Expected Results: The POST data should contain empty data for the file, with an empty filename
This happens in the linux version too.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.