Posted on: 4/5/2011 11:26:06 AM | Views : 437

Hello everyone
 
I'm currently in the process of making a small webapplication where the user can upload a video towards the server.
What I'm using now is the FileUploader of ASP. It works good although there are problems with the size of the videos.
 In my aspx page I just have this:
<asp:FileUpload id="FileUploadControl" runat="server" />
 And on the code behind I do this:
if (FileUploadControl.HasFile) // Checking if there is a file. { // Checking the extension if its supported. string fileExt = System.IO.Path.GetExtension(FileUploadControl.FileName).ToLower(); if (fileExt == ".3g2" || fileExt == ".3gp" || fileExt == ".amv" || fileExt == ".asf" || fileExt == ".avi" || fileExt == ".divx" || fileExt == ".dv" || fileExt == ".evo" || fileExt == ".f4v" || fileExt == ".flv" || fileExt == ".m1v" || fileExt = ...

Go to the complete details ...