OCA / storage

GNU Affero General Public License v3.0
70 stars 159 forks source link

[16.0] fs_attachment: sent the mimetype information for S3 #354

Open sebastienbeau opened 6 months ago

sebastienbeau commented 6 months ago

When storing image on amazon s3, ovh or scaleway. The minetype must be set in order to have the right mimetype when requesting the image publicly.

Note : when using the api put_file it will guess the mimetype automatically : https://github.com/fsspec/s3fs/blob/47ffcfad33f8c74974a1515cb266168ede6cf4b5/s3fs/core.py#L1176

OCA-git-bot commented 6 months ago

Hi @lmignon, some modules you are maintaining are being modified, check this out!

vincent-hatakeyama commented 3 months ago

Cherry picked in 17.0 to test with a local minio, mimetype is now correctly set.