Closed okadots closed 5 months ago
Can I just add, that this is happening for .svg files as well.
Microsoft Azure Storage for WordPress v4.4.0 Wordpress version: v6.4.1
Bug confirmed for me too, with PDF uploads on v4.4.0
This should be fixed with this PR: #224
Describe the bug
When uploading files via the WP admin, the Content Type is being incorrectly applied in Azure. All files, regardless of file type, are being uploaded to Azure with the content type of
application/octet-stream
.In WordPress, the attachment details show the correct content type.
This is causing PDFs to automatically download vs open in the browser. This is the case for all uploaded media files as well.
Changing the content type via the Azure interface resolves the behavior issue, but manually resolving for every file uploaded to a multiuser multisite is not a reasonable workflow.
Downgrading to v 4.3.5 fixes the issue and the correct content type is applied.
Steps to Reproduce
curl -v
the file url and see that content type is:Content-Type: application/octet-stream
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
Microsoft Azure Storage for WordPress v4.4.0 WordPress v6.3.1, this is a multisite php v8.2 mysql v8
Code of Conduct