hldp on my api

28 views
Skip to first unread message

ola neat

unread,
Dec 19, 2020, 3:08:14 PM12/19/20
to django...@googlegroups.com
halo guys, i'm working api that requires user to upload image and send text as form input on the same endpoint, i've done all is needed but i've been faced wit an err, hoping anyone can help out,
attached below is my code(serializer views) and d  err msg
hoping anyone can help
Screenshot from 2020-12-19 19-51-52.png
Screenshot from 2020-12-19 18-37-08.png
Screenshot from 2020-12-19 19-50-59.png

Desh Deepak

unread,
Dec 20, 2020, 2:05:26 AM12/20/20
to django...@googlegroups.com
You have missed adding the Content-Type header in the headers section. Just set the Content-Type header to application/json and it should work.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHLKn70xJbnK0zXE9rc_Q5q8UYhp6xHCvjz3Gv7vTX5Y2-D_gQ%40mail.gmail.com.

Anirudh Jain

unread,
Dec 21, 2020, 4:41:30 AM12/21/20
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages