#django rest image field

1 messages · Page 1 of 1 (latest)

muted tusk
#

It is going to return the relative URL to the image (under the MEDIA_URL), not the image data directly.

supple acorn
#

the doc for POST shows "image": "string"

muted tusk
#

It would be better if you showed the whole doc section, but it looks like you anyway have to use multipart/form to upload an image, so i am going to assume it is just for representation, i.e. GET

supple acorn
#

so if this is not why i'm getting 400 error then i'm stuck :p

muted tusk
#

This is the first you have said anything about a HTTP400 ?

supple acorn