How to upload video file
Hi Here I am trying to make functionality upload video for my website. can we upload video using perch. Please help me with this.
Hi Here I am trying to make functionality upload video for my website. can we upload video using perch. Please help me with this.
Yes, just like any other file. However as videos are large you will need to have high enough upload limits on your hosting.
Thanks But I am uploading 429 KB video and this is not added in asset.
If you think there is a problem then as usual we would need to see your template and Diagnostics Report.
We can't help you troubleshoot unless you give us enough information to do so.
Diagnostics Report
And this is my template page code
I also update the
post_max_size=100M
in php.ini
Are
pdf,zip,video
sections defined in yourfiletypes.ini
file?This is my filetype.ini file
Is there any solution for this.
What happens when you attempt to upload a video? Is it refreshing and the file isn't in the assets list, or is it not even uploading? If it does appear to be uploading, have you checked your resources folder to see if the file is there?
Yes, when I am uploading the video file. the file is not appearing in the assets list and I also checked it in resources folder. But the file is not in the folder. until it will not appear in the list we can not select the video from the list. Is there any solution for this?
Can you post the
<perch:content>
tag that adds the upload field?This is the <perch:content> tag that i am using.
Is there any way. to get the solution?
Is that the exact code?
If so, is this what you are experiencing?
Select or upload a file
.No matching assets found
note.Add Asset
button.Use Selected
but nothing happens?If so, it's because there is a space at the start of your ID
video-backgraund
.Remove that and it should allow it to save and allow you to use it.
Also,
id
requires the use of underscores, not dashes, so change the id tovideo_backgraund
, just to be sure.And remove the space in the
id
.Yes, I have made changes in the template page according to your suggestions. Unfortunately, still the problem is not sorted. Below is my template page code:
Hereby, providing all the screenshots of the running project with the issue I'm facing:
Quick screen-cast shows the issue:
Do the videos appear in the Assets app? I see you've filtered by 'Documents' when they'd be classed as videos.
No, the videos are not appearing in the Assets app.
Do they appear on disk?
No, they are not appear on disk.