I am doing a POC with Umbraco 9, what I am trying to get working is storing the media on S3.
I have created a custom IFileProvider and setting this;
builder.SetMediaFileSystem((factory) => { return new S3FileSystem(); });
I am seeing the files being uploaded to S3, but when the back office media section loads, it's still trying to load the media from the physical file system (I think) /media/xxxxx/file.png
When I debug it's not hitting any of the GetFiles methods on my custom IFileSystem. Am I missing a step where I need to configure the back office to use this ?
I am having the same issue. Was about to post a question when I found yours. Seems like its not worth posting a question if it goes months without being answered :/
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.
Umbraco 9 Custom IFileSystem
I am doing a POC with Umbraco 9, what I am trying to get working is storing the media on S3.
I have created a custom IFileProvider and setting this;
builder.SetMediaFileSystem((factory) => { return new S3FileSystem(); });
I am seeing the files being uploaded to S3, but when the back office media section loads, it's still trying to load the media from the physical file system (I think) /media/xxxxx/file.png
When I debug it's not hitting any of the GetFiles methods on my custom IFileSystem. Am I missing a step where I need to configure the back office to use this ?
I am having the same issue. Was about to post a question when I found yours. Seems like its not worth posting a question if it goes months without being answered :/
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.
is working on a reply...