5

I can't upload a video file through WYSIWYG editor. Sometimes it says File validation failed.. Sometimes it simply doesn't do anything while uploading a file.

Kindly help me.

Muhammad Anas
1,4673 gold badges13 silver badges33 bronze badges
asked Jul 5, 2018 at 8:32
4
  • Hi What video file? mp4? avi? Commented Jul 5, 2018 at 13:21
  • both video file Commented Jul 5, 2018 at 14:03
  • on witch one you had error? because avi is supported , mp4 no and you need add functionality for second one Commented Jul 5, 2018 at 14:15
  • Can you try to upload first avi file from this site engr.colostate.edu/me/facil/dynamics/avis.htm and tell me is it working. In magento upload choice html5 Commented Jul 5, 2018 at 14:58

2 Answers 2

1

You can add mp4 for example that way:

Copy vendor/magento/module-cms/etc/di.xml to yourvendor/YourTheme/Magento_Cms/etc/di.xml

and add this to media_allowed

 <item name="mp4" xsi:type="number">1</item>
nikin
1,1529 silver badges19 bronze badges
answered Jul 5, 2018 at 14:20
1

If you're looking to upload product video then there is one more method do it via YouTube. These are the steps which you have to follow:

  • Upload your video to YouTube.
  • Go to google developer console and generate YouTube Data API.
  • Then add the generated Youtube API key to your Magento 2 store by going to STORES --> Configuration.
  • At last, just add Video URL (YouTube) to your product edit page.
answered Dec 18, 2018 at 7:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.