Copied to clipboard

Flag this post as spam?

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


  • MrCSharp 1 post 71 karma points
    Mar 02, 2022 @ 22:52
    MrCSharp
    0

    IMediaPathScheme and IFileSystem

    Hi, I am using custom implementations of IMediaPathScheme and IFileSystem to upload files to a remote Digital Assets Management system. The path I need to generate for the files needs to have a specific structure that relies on information available within the media type object. The IMediaPathScheme.GetFilePath has an itemGuid parameter but calling MediaService.GetById returns null. Is this because GetFilePath is called before the media object is stored in the database? If that is the case, what might be another way to achieve this? I don't think I have seen anything in the Umbraco documentation that can provide this info.

    Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft