Closed AaronSadlerUK closed 2 years ago
To make this work on Umbraco Cloud (and possibly other providers) it should be using the IMediaFileSystem to get a stream rather than reading off disk.
The reason being that when using blob storage the server path is not where the file resides.
https://our.umbraco.com/Documentation/Reference/Configuration-for-Umbraco-7-and-8/fileSystemProviders/#get-the-contents-of-a-file-as-a-stream
To make this work on Umbraco Cloud (and possibly other providers) it should be using the IMediaFileSystem to get a stream rather than reading off disk.
The reason being that when using blob storage the server path is not where the file resides.
https://our.umbraco.com/Documentation/Reference/Configuration-for-Umbraco-7-and-8/fileSystemProviders/#get-the-contents-of-a-file-as-a-stream