Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nik 1218 posts 5081 karma points MVP 2x c-trib
    Nov 20, 2019 @ 18:08
    Nik
    0

    Custom File Provider - Azure Blob Storage (Not Media)

    Hi All,

    I'm hoping for some help, mainly in understanding what I need to do to achieve this, and how Virtual File Providers work in Umbraco as I'm just not grasping it.

    Requirement:

    In azure blob storage I have a container called "Downloads", in this container is 1000 - 2000 blob items. When these files are uploaded to the container I receive events which I handle (or need to finish handling).

    I want to be able to serve these files seamlessly via my site e.g. my.domain/documents/blob.name

    I also want to be able to access these files via a file provider so I can index their contents using the IOHelper/VirtualPathProvider

    So the question

    1. Should I be going down the VirtualFileProvider approach in the same way that the UmbracoFileSystemProviders.Azure package does?
    2. If so, how do I approach this as the code in the UmbracoFileSystemProviders.Azure seems very targeted at Media when it comes the provider.
    3. What am I missing in my understanding of a VirtualFileProvider and it's usecase if I shouldn't be doing the above?

    My understanding is that this should make accessing the physical files easier than having to use the Blob Storage API as it's all wrapped in that.

    Hopefully this makes sense and what I'm asking is clear.

    Any help would be greatly appreciated :-)

    Nik

Please Sign in or register to post replies

Write your reply to:

Draft