Open Prater-12 opened 1 month ago
When one tries to upload a WebP file via the API, the upload fails with the following error:
client.upload("temp/41_jpg.webp", "public") # {"message":"File mime-type \"text/plain\" not allowed.","error":"Unprocessable Entity","statusCode":422}
The strict check used to guess mime type seems to be excluding image/webp
mime_type = mimetypes.guess_type(abs_file_path, True)[0] # None print(mimetypes.guess_type(abs_file_path, True)) # (None, None) print(mimetypes.guess_type(abs_file_path, False)) # ('image/webp', None)
I tried on my mac(Python 3.12), it works. Could you please talk more about your situation?
Issue
When one tries to upload a WebP file via the API, the upload fails with the following error:
Possible Cause
The strict check used to guess mime type seems to be excluding image/webp