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.
IMediaPathScheme and IFileSystem
Hi, I am using custom implementations of
IMediaPathScheme
andIFileSystem
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. TheIMediaPathScheme.GetFilePath
has anitemGuid
parameter but callingMediaService.GetById
returnsnull
. Is this becauseGetFilePath
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.
is working on a reply...