0

My home page needs to be a promotional video to be embedded. I thought to create a static block which will contain the video file and I just add that block to the content by updating the layout in admin side.
But the problem is that I cann't upload a video file through wysiwyg editor. Sometime it says "Disallowed Type" . Sometimes it simply don't do anything while uploading file.
Kindly help me. Thanks.

2 Answers 2

1

You have to allow a new file extension like this in your config.xml:

<adminhtml>
    <cms>
        <browser>
            <extensions>
                <allowed>
                    <mp4>1</mp4>
                </allowed>
            </extensions>
        </browser>
    </cms>
</adminhtml>

Change or add the Extension in the "allow" node. Make sure, that your Server is configured to Upload bigger files

1
  • Can you please add full file description . ? Feb 26, 2018 at 6:08
-2

goto youtube.com open which video you want then bottom of video three option is there. so you click Embed after that it will show like this

<iframe width="560" height="315" src="https://www.youtube.com/embed/dUgra62yOBw?list=PLDxywfIfVjJrva58P_oXhG8zUQAAsOayp" frameborder="0" allowfullscreen></iframe>

Then use this in your static block or cms page

3
  • I have already done that and it works fine. But I want to upload from backend admin section, i.e. I want to create a CMS static block containing a video. I am having problem uploading video through wysiwyg editor. Oct 4, 2015 at 14:01
  • You want to upload video through backend right
    – Magento 2
    Oct 4, 2015 at 14:39
  • 1
    Yes. From backend using wysiwyg editor. Oct 4, 2015 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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