Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Lord 58 posts 211 karma points
    Mar 30, 2022 @ 12:03
    Chris Lord
    0

    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 ?

  • Paul Davis 6 posts 96 karma points notactivated
    Aug 19, 2022 @ 08:09
    Paul Davis
    0

    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 :/

  • Paul Davis 6 posts 96 karma points notactivated
    Aug 24, 2022 @ 07:48
    Paul Davis
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft