Ticket #422 (closed defect: fixed)
Error when submitting form with empty file field
| Reported by: | al | Owned by: | ianb |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.1 |
| Component: | webtest | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
An errors occurs when submitting an upload form if no file has been selected. In some applications, a form can contain multiple field along with an optional file field, so I think WebTest? should not require a file in order to submit the form successfully.
In the attached patch, I've modified test_no_uploads_error to trigger the problem and added a check in encode_multipart() to skip empty file fields.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

