SQLAlchemy-file is a SQLAlchemy extension for attaching files to SQLAlchemy model and uploading them to various storage such as Local Storage, Amazon S3, Rackspace CloudFiles, Google Storage and others using Apache Libcloud.
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.
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 toStorageManager.save_file
Original file
extra
:Thumbnail file
extra
:So apparently it is caused by the missing
'content_type': 'image/png'
in the thumbnail extra data.