var media = ApplicationContext.Current.Services.MediaService.CreateMedia(fileName, playersPhotoMediaFolder.Id, Constants.Conventions.MediaTypes.Image);
Hey Alex, thanks for replying, I deleted this post minutes after posting it, having found my (silly) problem.
I don't know why it is not yet deleted, and moreover, why I see no option for deleting it now.
IMediaService.CreateMedia throwing "No MediaType matching the passed in Alias: 'Image' was found"
I found another thread that raises the same issue, but it remained unanswered. I am hoping that a new thread will catch a solver's attention.
I am receiving http requests from mobile devices with files attached. In trying to create those files under umbraco media (image files), with
it throws the following exception: "No MediaType matching the passed in Alias: 'Image' was found".
What could possibly be wrong (the media type does exist there, and the alias is correct one (case-sensitivity checked...))?
Hi Avraham,
Can you show your code ?
We are creating media like that :
var media = ApplicationContext.Current.Services.MediaService.CreateMedia(fileName, playersPhotoMediaFolder.Id, Constants.Conventions.MediaTypes.Image);
Thanks
Hey Alex, thanks for replying, I deleted this post minutes after posting it, having found my (silly) problem. I don't know why it is not yet deleted, and moreover, why I see no option for deleting it now.
is working on a reply...