Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Large File uploading to asp.net MVC

Tags:

I need a way to upload large files (600 mb to 4 gb) in an asp.net mvc website. Currently I am using swfupload; it works well enough, but it is a huge hit on the webserver because it sends it in one big upload, plus I have to set it in the web.config to allow that huge of a file, which is a huge security risk. In the past when I was doing web forms development I used Neatupload which breaks up the file into chunks and uploads them individually. I am looking for a way to upload large files in mvc that uploads via chunking it up. Any ideas on how I could do this?

like image 927
Solmead Avatar asked Mar 28 '09 04:03

Solmead


People also ask

How can upload video in ASP.NET MVC?

Right-click on project Add select New Folder, name it VideoFileUpload to upload all the audio files in that folder. Right-click on Models folder, select Add, then select Class. A window will appear. Choose Class, give it the name VideoFiles, then click on Add.


2 Answers

Silverlight File Upload

like image 108
stevehodgkiss Avatar answered Oct 14 '22 07:10

stevehodgkiss


I ended up using Darren Johnstone's ASP.NET File Upload Module to handle the uploading on the server side. Though I modified it slightly so that it could take a guid on the querystring that it would save the temp file to that guid name.

It was nice because it saved the file as it arrived at the server, and stripped the file out of the posted data which it then sends to the action on the controller that was specified.

like image 21
Solmead Avatar answered Oct 14 '22 06:10

Solmead