3

I am trying to create a multimedia component for youtube videos.I have created the following schema allowing Mpeg Video type.

enter image description here

However, if I try to create a multimedia component with external URL, it is throwing an exception reated to file extension.

Invalid value for property 'Filename'. Unexpected file extension: . Expecting: mpg,MPEG.

Any help is greatly appreciated!

enter image description here

2 Answers 2

2

The problem is that you need to add allowed extensions for this file type. So go to Administration, then Multimedia types and select type there and update it.

enter image description here

3
  • Well, looking at the error message, the unexpected file extension is an empty string. You would have to add an empty string as File Extension on the MM type; I don't think that is allowed. So: the root cause here seems to be that there is no file extension in the URL. Commented Dec 2, 2021 at 16:29
  • true. not sure about youtube video in link....
    – Marko Milic
    Commented Dec 3, 2021 at 9:38
  • Hi @MarkoMilic, Thanks for the response. Could you tell me what extension type should be updated for youtube video url?
    – ragmn
    Commented Dec 3, 2021 at 13:41
2

Why not implement as already proven in this implementation?

You don't have to use DXA to render the final piece - any application can consume the same content but at least you'll be using something that's tried, tested and even documented.

https://docs.rws.com/792161/548870/sdl-digital-experience-accelerator-2-1/adding-a-youtube-video-to-a-webpage

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.