How to upload media files to Azure storage in multipart/form-data format with presigned-url?

Taehyen Kim 0 Reputation points
2024-10-14T16:53:21.3266667+00:00

I would like to upload the media file to Azure storage through the prescribed-url address in multipart/form-data format. Currently, the part of uploading to the PUT method using the general presented-url has been shown and worked on, and I would like to upload media in the form of multipart/form-data using the POST method. However, I get a response that POST method is not available with the normal pre-signed-url I created. Is there a way to create a presented-url to be multipart upload executable?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,928 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ashok Gandhi Kotnana 405 Reputation points Microsoft Vendor
    2024-10-14T18:39:36.27+00:00

    Hi Taehyen Kim,

    Welcome to Microsoft Q&A Forum, thank you for posting your query here!

    Azure Blob Storage typically uses PUT requests for file uploads, even when using a pre-signed URL (Shared Access Signature or SAS URL). The issue you're encountering arises because Azure Blob Storage does not support file uploads via the POST method with the standard SAS URL.

    By utilizing Azure Functions and pre-signed URLs, we can create a highly efficient and scalable solution for handling multiple file uploads to Azure Blob Storage. This approach not only reduces the time required for uploads but also improves reliability by isolating the upload process for each file.

    Please refer this article https://shravanksubrahmanya.medium.com/efficient-multi-file-upload-to-azure-blob-storage-with-pre-signed-urls-a-step-by-step-guide-for-81dd1f957a3e

    Please let us know if you have any further queries. I’m happy to assist you further. 

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please do not forget to "Accept Comment” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.