Forum
Having trouble adding video files to my site using type="file"
I'm currently creating a blog which requires a video in each post so I'm creating the template to include this - below is the video specific code I have so far...
<div class="video_upload">
<video width="320" height="240" controls>
<source src="<perch:blog id="video_MP" type="file" label="Video MPFour" />" type="video/mp4">
<source src="<perch:blog id="video_OGG" type="file" label="Video Ogg" />" type="video/ogg">
Your browser does not support the video tag.
</video>
</div>
This has created the 2 required file upload inputs in my admin however when I click to add the videos as assets it seems to upload them and then I can't select the files to use for that field...
The 2 video files .mp4 and .ogv are currently 2.1mb and 988kb respectively.
Can anyone see where I am going wrong here?
Thank you in advance
Are the video files uploaded to your resources folder?
Can we see your Diagnostics Report, please?
Thanks Rachel, yes, they have been added to my perch resources folder.
Here is my full diagnostics report...
Do the videos appear inside the Assets app?
So I click to 'select or upload a file' then on adding an asset i've tried both dragging the file into the box and also clicking and selecting it from my files.
When I select the file I want to add it sort of uploads it and then the assets disappear from view. So from there I tried clicking 'add an asset' again and they appear but they aren't selectable. Visually they are showing up in the assets app with a grey box within a white frame with a green strip along the bottom and the file size of the asset.
Any idea whats wrong here?
Thanks
As far as I can tell, nothing. If you use the filter for video, can you see them listed?
You'll only get video thumbnails if you have imagick and ffmpeg correctly configured.