#django rest image field
1 messages · Page 1 of 1 (latest)
this is for POST
the doc for POST shows "image": "string"
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
{
"title": "string",
"body": "string",
"image": "string",
"alt": "string",
"status": "D",
"tags": [
"string"
],
"pin": true
}
so if this is not why i'm getting 400 error then i'm stuck :p
This is the first you have said anything about a HTTP400 ?
well the question wasn't about that
i am getting a 400 error when POSTing
but first need to understand the question i asked