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
data – (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the Request.
files – (optional) Dictionary of 'name': file-like-objects (or {'name': file-tuple}) for multipart encoding upload. file-tuple can be a 2-tuple ('filename', fileobj), 3-tuple ('filename', fileobj, 'content_type') or a 4-tuple ('filename', fileobj, 'content_type', custom_headers), where 'content_type' is a string defining the content type of the given file and custom_headers a dict-like object containing additional headers to add for the file.
what happens if someone sets both? i ask because AFAIU, files is sent in the request body
The text was updated successfully, but these errors were encountered:
from the docs:
data – (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the Request.
files – (optional) Dictionary of 'name': file-like-objects (or {'name': file-tuple}) for multipart encoding upload. file-tuple can be a 2-tuple ('filename', fileobj), 3-tuple ('filename', fileobj, 'content_type') or a 4-tuple ('filename', fileobj, 'content_type', custom_headers), where 'content_type' is a string defining the content type of the given file and custom_headers a dict-like object containing additional headers to add for the file.
what happens if someone sets both? i ask because AFAIU,
files
is sent in the request bodyThe text was updated successfully, but these errors were encountered: