Framework: sanic
Is there any way to get the name and type of the uploaded file?
We are currently using this implementation:
for _, file_list in info.context.req.files.items():
file_name = file_list[0].name
file_size = len(file_list[0].body)
file_type = file_list[0].type
Is there a more correct way to get this data using the Upload scalar?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too