strapi-provider-upload-azure-storage
strapi-provider-upload-azure-storage copied to clipboard
Resolving "This request is not authorized to perform this operation" Error When Uploading Files from Strapi to Azure Blob Storage
I'm encountering an authorization error when trying to upload an image from my Strapi application to Azure Blob Storage. The error message I receive is:
codeError: This request is not authorized to perform this operation.
Steps to Reproduce:
Attempt to upload an image from Strapi to Azure Blob Storage. Strapi sends a POST request to Azure Blob Storage. Receive the authorization error.
Additional Details:
When I tried sending a similar request to the same URL using Postman, I received a 201 Created response after adding the following header:
Key: x-ms-blob-type Value: BlockBlob It seems that Strapi is not including this necessary header in the request, which leads to the authorization error.
Request for Help:
Could anyone guide me on how to resolve this issue? Is there a way to configure Strapi to include the x-ms-blob-type header in the request to Azure Blob Storage? Any advice or assistance would be greatly appreciated.