Hello, for some reason I'm not able to update the file name and location at the same time.
Can you please provide an example of how to do so?Here's my code:
public async UpdateMediaFile(MediaFileDto mediaData)
var mediaInfo = mediaFileInfoProvider.Get(mediaData.MediaFileId)
if (mediaInfo != null)
// Updates the media library file properties
mediaInfo.FileName = mediaData.FileName;
mediaInfo.FilePath = $@{mediaData.FilePath}/{mediaInfo.FileName}{mediaInfo.FileExtension}@;
// Saves the media library file
mediaFileInfoProvider.Set(mediaInfo);Also, how can I retrieve the list of folders in a Media Library and how can I check if a folder exists?Thanks,
Patryck Thomas
↧