You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The field name should be e.g. image_type or image_mime_type, referring to the image's MIME type, rather than image_content_type, since only MIME-like messages have content types.
"Content-Type" comes from the HTTP response (and multipart request header) header of that name. There are many headers prefixed with Content- though, including Content-Length and Content-Encoding, and their purpose is to describe the content of the HTTP response. As an example of their meaning: the Content in this response has a Type of application/html, a Length of 12943 in bytes, and an Encoding of gzip.
The following are standard headers in HTTP request messages, HTTP response messages, or multipart/form-data messages:
Content-Disposition
Content-Encoding
Content-Language
Content-Length
Content-Location
Content-MD5
Content-Range
Content-Transfer-Encoding
Content-Type
They describe the Content part of the message, just like the field image_type should describe the image part of the model object.
The text was updated successfully, but these errors were encountered:
The field name should be e.g.
image_type
orimage_mime_type
, referring to the image's MIME type, rather thanimage_content_type
, since only MIME-like messages have content types."Content-Type" comes from the HTTP response (and multipart request header) header of that name. There are many headers prefixed with
Content-
though, includingContent-Length
andContent-Encoding
, and their purpose is to describe the content of the HTTP response. As an example of their meaning: theContent
in this response has aType
ofapplication/html
, aLength
of12943
in bytes, and anEncoding
ofgzip
.The following are standard headers in HTTP request messages, HTTP response messages, or
multipart/form-data
messages:Content-Disposition
Content-Encoding
Content-Language
Content-Length
Content-Location
Content-MD5
Content-Range
Content-Transfer-Encoding
Content-Type
They describe the
Content
part of the message, just like the fieldimage_type
should describe theimage
part of the model object.The text was updated successfully, but these errors were encountered: