Skip to content

Download not working for private Blob-Container #15

@AndiHahn

Description

@AndiHahn

Download of single files uses a WebClient for downloading the file.
If the Azure Blob Storage Container is not set to public access, this will result in a Status 404 (Resource not found).

FileStreamResult fileStreamResult = new FileStreamResult(new MemoryStream(new WebClient().DownloadData(this.filesPath + selectedItems[0].FilterPath + names[0])), "APPLICATION/octet-stream"); fileStreamResult.FileDownloadName = file.Name; return fileStreamResult;

To support private Blob Container's aswell, the Azure Blob Storage library should be used to download the file's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions