convert_request_to_files_dict
Converts the request.files dictionary to a dictionary of BytesIO objects.
request.files
has the following format, even if only a single file is uploaded:
{ "textFile": [ sanic.request.File(type="text/plain", body=b"strawberry", name="textFile.txt") ]}
Note that the dictionary entries are lists.
Signature:
def convert_request_to_files_dict(request: Request) -> Dict[str, Any]: ...
Parameters:
-
request:
- Type
-
Request