I'm creating a custom Workflow in Umbraco Forms 10 where I create a PDF file and send it via email. I would also like to keep a backup in our Azure Blob storage account in a private container (outside of Umbraco media).
In Umbraco 7 I could easily add a new filesystem in FilesystemsProvider.config but I have some trouble with Umbraco 10.
How do I retrieve this new filesystem in my workflow? I tried using IAzureBlobFileSystemProvider in the constructor, but it contains only the Media filesystem.
public class PdfWorkflow : WorkflowType
{
private readonly IAzureBlobFileSystem _blobFileSystem;
public PdfWorkflow(IAzureBlobFileSystemProvider provider)
{
_blobFileSystem = provider.GetFileSystem("Enrollments");
}
}
How to add and use another AzureBlobFileSystem?
I'm creating a custom Workflow in Umbraco Forms 10 where I create a PDF file and send it via email. I would also like to keep a backup in our Azure Blob storage account in a private container (outside of Umbraco media).
In Umbraco 7 I could easily add a new filesystem in
FilesystemsProvider.config
but I have some trouble with Umbraco 10.I found a function
AddAzureBlobFileSystem(string name)
in https://github.com/umbraco/Umbraco.StorageProviders#usage-2 that might be useful:Here's my Startup.cs:
How do I retrieve this new filesystem in my workflow? I tried using
IAzureBlobFileSystemProvider
in the constructor, but it contains only the Media filesystem.is working on a reply...