Greg,

Yes, file uploading doesn't work in JSON. It is theoretically possible, but don't try :D

Multipart works fine here, and we have many several ViewSets and Views that receive images. We haven't even customized anything except by adding a function to de-nest the json values (e.g. user { name } => user.name) for the field values when posting between services.

What is the exact issue you are having? Perhaps the response json or a picture of the crash?

ggil...@gmail.com <mailto:ggil...@gmail.com>
August 24, 2016 at 12:45 PM
I'm ready to tear my hair out. I've been searching and searching for a working example of uploading to django using rest apis.

I've looked at a lot of examples I've found searching, but none of them seem to work.

Do multipart forms work in the current version? I never get any of the parameters across. JSON seems to work fine, but file uploading doesn't work with JSON.

Any help would be greatly appreciated.

      Greg



--
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 <mailto:django-rest-framework+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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