C # file upload control for video

I am developing a website that will upload video files to ASP.NET. I have a question: video files can become very large (i.e. 3 GB), and I read that increasing maxRequestLength in the webconfig file will give hackers the ability to attack the server with large requests.

I already know about checking the client to protect against malicious files that are not intended files, so at the moment this is not a problem. My question is, is the file upload method the right approach to uploading video files? If not, is there a better approach?

+7
source share
3 answers

To upload a large file to asp.net, I used "Brettle.Web.NeatUpload"

You can get it at http://neatupload.codeplex.com/

I hope this will be helpful to you.

+3
source

I use http://www.plupload.com/ in combination with tagged downloads inside the ashx handler. On the server, I click the parts on Amazon S3, so the server never has a complete file in memory. works great for me.

0
source

The reason to worry about these problems is that the built-in functions within dotNET for handling file uploads in IIS in ASP.NET are written to cache the entire file upload to memory before streaming the file to disk. Therefore, if you allow very large file downloads, you run the risk of letting someone perform a denial of service attack on your IIS server because all it takes is an explosion of several very large file downloads to release the available physical memory to the server. Therefore, the answer to this question is to either write your own download handler that does not cache the entire file download into memory, or use one of the many available software components that you can install and do it for you. The other two answers indicate a pair. Here is another component I found for ASP.NET:

http://www.easyalgo.com/eaupload.aspx

0
source

All Articles