umbraco / Umbraco.StorageProviders

MIT License
29 stars 21 forks source link

Add IStorageProvider implementation based on IFileProvider #26

Open ronaldbarendse opened 2 years ago

ronaldbarendse commented 2 years ago

This PR builds upon https://github.com/umbraco/Umbraco.StorageProviders/pull/11#issuecomment-909081829.

Instead of wrapping the media IFileSystem (Umbraco's read/write IO abstraction) as an IFileProvider (ASP.NET Core read-only IO abstraction) to then use in the StaticFileMiddleware, this directly implements the IFileProvider for the read-only part and exposes the write-operations in a new IStorageProvider abstraction.

This is a POC and still needs a lot of work!

ronaldbarendse commented 1 year ago

These are just some idea's that came up recently related to reworking the file providers: