Superbalist / flysystem-google-cloud-storage

Flysystem Adapter for Google Cloud Storage
MIT License
265 stars 105 forks source link

Improved mimetype fallback (equal to AWS driver) #115

Closed kohlerdominik closed 6 months ago

kohlerdominik commented 4 years ago

This PR aligns this driver with the functionality of the AWS driver regarding it's mimetype detection. The GCS-lib has a mimetype detection, but it bases only on the file extension.

Meanwhile, Flysystems brings it's own mimetype detection, detecting the mimetype from the contents and as fallback from the file extension.

Check the equal in AwsS3Adapter