Hello,

our api requires to upload multiple files on the same fieldname:

Content-Type: 
multipart/form-data;boundary=------FormBoundaryShouldDifferAtRuntime

------FormBoundaryShouldDifferAtRuntime
Content-Disposition: form-data; name="*files*"; filename="*filenameA.pdf*"
Content-Type: application/pdf

[content]
------FormBoundaryShouldDifferAtRuntime
Content-Disposition: form-data; name="*files*"; filename="*filenameB.pdf*"
Content-Type: application/pdf

[content]
------FormBoundaryShouldDifferAtRuntime--

At the moment i am not able to write a test with two files on the same 
files key. MultiValueDict does not work with APIClient.post(). Any 
recommendations?

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to