Opened 10 years ago

Closed 10 years ago

#6945 closed (invalid)

django/test/ cannot encode multiple files

Reported by: hto@… Owned by: nobody
Component: Testing framework Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


If one wants to test multiple file upload it would be nice if I could say, {'files':(a, b, c)}

where a, b, c are file-like objects. I could provide a patch if there is interes in this?

Change History (1)

comment:1 Changed 10 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

If you have multiple files being uploaded on a form, each one will be an independent <input type='file'>; as a result, your post dictionary should be {'file1':a,'file2':b,'file3:'c}.

Note: See TracTickets for help on using tickets.
Back to Top