-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
I've enabled the thumbnail processor, unfortunately the thumbnail is uploaded as "application/octet-stream" when uploading to the Google Storage bucket so it can't be served from the bucket.
Version: sqlalchemy_file-0.4.0
Storage driver: GoogleStorageDriver
I did a step debugging of the extra data coming to StorageManager.save_file
Original file extra:
{'content_type': 'image/png', 'meta_data': {'filename': 'Screenshot 2023-05-26 145006.png', 'content_type': 'image/png'}}Thumbnail file extra:
{'meta_data': {'filename': 'Screenshot 2023-05-26 145006.png.thumbnail116x128.png', 'content_type': 'image/png', 'width': 116, 'height': 128}}So apparently it is caused by the missing 'content_type': 'image/png' in the thumbnail extra data.
jowilf
Metadata
Metadata
Assignees
Labels
No labels