File Storage

alacritycad 0 Reputation points
2023-07-22T17:59:47.3033333+00:00

How do I store a file in Azure so that it has this format: https://www.contoso.com/contosoapp/downloads/1.1/setup.exe?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,301 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 57,431 Reputation points
    2023-07-22T20:44:15.9966667+00:00

    Have a look at the following documentation:

    Quickstart: Upload, download, and list blobs with the Azure portal

    https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-portal

    You will want to create a container, then upload your files to that container.


    If this is helpful please accept answer.

    0 comments No comments

  2. Sander van de Velde | MVP 33,046 Reputation points MVP
    2023-07-22T21:00:38.8866667+00:00

    Hello @alacritycad ,

    Azure Storage Files supports REST API calls but not in that format:

    ... which is often called the FileREST API. To use the FileREST API, you create HTTPS requests against the FileREST HTTPS endpoints. You could write code to create HTTPS requests yourself ...

    You are probably better off with Azure Storage Blobs:

    Users or client applications can access objects in Blob Storage via HTTP/HTTPS, from anywhere in the world

    You can secure the rest endpoints of your uploaded files using SAS tokens (including a specific time frame) or make them available publicly.

    Here is an example of an uploaded file:

    User's image

    Notice an URL is provided.

    You can generate a SAS token if you want to limit access:

    User's image

    Browsers typically do not like to download executables due to potential viruses etc. so keep an eye on that challenge.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    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.