Skip to content

New Plugin: Azure Blob #7

Description

@mikoskinen

Plugin which allows file/directory browsing of Azure Blob Storage. Functionality should be similar to the Files-plugin.

This code can be helpful: https://github.com/filipw/Strathweb.AspNetCore.AzureBlobFileProvider/tree/master/src/Strathweb.AspNetCore.AzureBlobFileProvider

This should be done in new repository: ApiFramework.Plugins.AzureBlobs. Use weikio/Template
as the starting point.

Configuration:

  • ConnectionString
  • Mode: Read, Read & Write

Methods:

  • List (string path): returns list of items ("directories" and blobs). At least the following data should be available for each item IF they are available without querying metadata for each blob individually: BlobName, file size, dates (created date, modified date etc).
  • Get (string filePath): returns single blob as byte-array. Can we also return a correct mime-type (pdf, txt etc?)
  • Save (string filePath, byte[] content): Creates new blob or updates an existing one.
  • Delete (string filePath): Deletes blob (doesn't have to support deleting a directory)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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