10up / windows-azure-storage

Use the Microsoft Azure Storage service to host your website's media files.
https://wordpress.org/plugins/windows-azure-storage/
BSD 2-Clause "Simplified" License
62 stars 46 forks source link

fix content type issue defaulting to octet-stream #224

Closed hugosolar closed 5 months ago

hugosolar commented 5 months ago

Description of the Change

This PR ensures that the blob is being sent to the storage with the proper content type as we're experiencing issues with some containers defaulting the content type to application/octet-stream With this fix, we're not leaving the default content type but sending the file content type directly to the createBlockBlob() function through the $options parameters

Fixes #210

How to test the Change

Changelog Entry

Fixed - Ensure we send the proper content type when creating the Block Blob in the container.

Credits

@hugosolar

Checklist: