Hi all! I have been an Umbraco developer for 5 years and have just started dabbling with v10. The doco for changing how Umbraco stores and retrieves media seems to be a little incomplete.
https://our.umbraco.com/documentation/Extending/FileSystemProviders/ says to make a composer to call builder.SetMediaFileSystem(...) and edit startup.cs to call app.UseStaticFiles(...) but that only stores media. When Umbraco tries to retrieve media, it 404s (but does call GetFileInfo() on my custom IFileProvider).
Rummaging through the code for Umbraco.StorageProviders.AzureBlob has not highlighted anything I have done differently. What is missing?
It seems there are others who have had a similar/same issue but with no solution:
The documentation should also say that we need to implement IFileProvider (and therefore also IDirectoryContents, and IFileInfo) to get media from another location e.g. Amazon S3.
Thanks for your response. I've managed to reach almost near the target but deletion of media files from s3 from the Umbraco media library not working for me. Do you have any references?
Custom IFileSystem for Amazon S3
Hi all! I have been an Umbraco developer for 5 years and have just started dabbling with v10. The doco for changing how Umbraco stores and retrieves media seems to be a little incomplete.
https://our.umbraco.com/documentation/Extending/FileSystemProviders/ says to make a composer to call builder.SetMediaFileSystem(...) and edit startup.cs to call app.UseStaticFiles(...) but that only stores media. When Umbraco tries to retrieve media, it 404s (but does call GetFileInfo() on my custom IFileProvider).
Rummaging through the code for Umbraco.StorageProviders.AzureBlob has not highlighted anything I have done differently. What is missing?
It seems there are others who have had a similar/same issue but with no solution:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/108230-can-we-use-s3-bucket-as-media-in-umbraco-version-911
https://our.umbraco.com/forum/using-umbraco-and-getting-started/108666-umbraco-9-custom-ifilesystem
Figured it out!
The documentation should also say that we need to implement IFileProvider (and therefore also IDirectoryContents, and IFileInfo) to get media from another location e.g. Amazon S3.
Hi Paul,
It will be very helpful if you can share more details on this.
Thanks Mathew
Hi Mathew. Umbraco have since updated the documentation after I logged an issue that it was unclear. It should now guide you through the process: https://our.umbraco.com/documentation/Extending/FileSystemProviders/
Hi Paul,
Thanks for your response. I've managed to reach almost near the target but deletion of media files from s3 from the Umbraco media library not working for me. Do you have any references?
Hi all, is there a NuGet package we can install for v10 to achieve this? Something like the Umbraco S3 Provider package we had for v8?
Thanks
We use these packages for S3 on 10.5.1
https://www.nuget.org/packages/Our.Umbraco.StorageProviders.AWSS3/1.1.1?_src=template
https://www.nuget.org/packages/AWSSDK.S3/3.7.9.53?_src=template
https://www.nuget.org/packages/AWSSDK.Extensions.NETCore.Setup/3.7.3?_src=template
is working on a reply...