Sir I am developing a institution website where requirement is to upload and download images,pdfs and videos.I have done it for images and videos but unable to do so for videos.Please help me.
Thanks in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Jun 12, 2013, 3:14 AM
in aspx page
in code
if (flup_Video_Path.HasFile)
{
string fileName_Vdo = Path.GetFileNameWithoutExtension(Guid.NewGuid().ToString() + "_" + flup_Video_Path.FileName).ToString() + Path.GetExtension(flup_Video_Path.FileName).ToString(); flup_Video_Path.SaveAs(Server.MapPath("~/Uploads/video/") + fileName_Vdo); }
in database store the path.
Main thing fileupload control default file size is 4mb if you
upload more than 4mb
it will not take that . so you have to change it in web.config
within
you can increase or decrease the maxRequestLength according
to your requirement