Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi we're using azure blob storage but have a need to pull the file from disk to stamp it in to a PDF. Just wondering how to obtain a disk path for a given media file?
hi
the best thing to do is to use the IFileSystem interface to access the media folder. this abstracts away the storage system underneath.
see: https://our.umbraco.org/documentation/extending/custom-file-systems
you get the media folder with :
IFileSystem fileSystem = FileSystemProviderManager.Current.GetUnderlyingFileSystemProvider("media");
and one you have that you can do most of the same things you can with System.IO. except it will happen wherever your media is stored.
Thanks Kevin!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
UmbracoFileSystemProviders.Azure - Server.MapPath
Hi we're using azure blob storage but have a need to pull the file from disk to stamp it in to a PDF. Just wondering how to obtain a disk path for a given media file?
hi
the best thing to do is to use the IFileSystem interface to access the media folder. this abstracts away the storage system underneath.
see: https://our.umbraco.org/documentation/extending/custom-file-systems
you get the media folder with :
and one you have that you can do most of the same things you can with System.IO. except it will happen wherever your media is stored.
Thanks Kevin!
is working on a reply...