Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading biiiiig files via ASP.net 1

Status
Not open for further replies.

atropozzz

Programmer
Mar 19, 2002
16
AT
ho folks!

for my company i have to implement a cute content management system. all goes right but a problem came up when i tried to upload files bigger than approximately 3,5 MB via a webform (<form method=&quot;post&quot; encType=&quot;multipart/form-data&quot; runat=&quot;server&quot;> (all functions properly with filesizes less than the mentioned size).

the problem is that when i choose a large file for uploading and click the button to perform the upload, the procedure which should handle the click-event isn't called not even the pageload-method is called. instead a message saying that the page cannot be found is shown. seems to me that a webform using the post-method cannot handle such big files ... anyone got the solution?

thanks
ciaooo, atro
 
penny1.gif
penny1.gif
 
One word of warning I'll give you with large files though:

If this is an app that alot of people are going to use, make sure you do alot of testing with multiple users uploading larger files simultaneously.

The entire file needs to be transferred over to the web server BEFORE it does the size check. That means that if 10 people upload a 100MB file, all 10 must get to the webserver before they get rejected, and that could bog down your webserver entirely.

Having a policy for the max size of a file, client script to check the file first, or even offloading the entire file transer service to its own server/internet connection (which is what we're going to be doing in our next iteration: a totally seperate DSL line for file transer so our web server requests dont' get bogged/interupted).

Just some things to think about.

D'Arcy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top