File transfer between IIS 6.0 and MAC

R

Raj Dhrolia

Hi,
Can anyone suggest me best way to upload large files (>100-500MB) to my
ASP.NET web application (IIS 6.0, Win 2K3).
The problem we see with conventional method is that the session times
out, and the entire file gets loaded in IIS memory and things get worst when
couple of users upload 100s of MBs of file.
The solution should also work with MAC browsers.
Any pointers will be of great help.
Thanks,
Raj.
 
J

Juan T. Llibre

re:
Can anyone suggest me best way to upload large files (>100-500MB)

What ? Are you running a pirate site ?
( Only kidding... )

You need to do two things :

1. Increase the httpRuntime to the max file size you expect.

<httpRuntime
maxRequestLength="MaxNumberOfKilobytes"
/>

<httpRuntime
maxRequestLength="4096"
/>
is the default, and stands for 4MB max file size.

2. Increase the Session duration to the time needed to upload
the largest file you expect to be uploaded.

<sessionState
timeout="HoweverLongItTakesToUploadTheLargestFile"
/>

That's an integer which stands for minutes.

Example for 200 minutes :

<sessionState
timeout="200"
/>

Remember that the larger the Session Timeout,
the more server resources you use, so don't
set this to more than you need.

You'll have to calculate your connection's upload speed
and figure out the maximum time you should allot for
the maximum file size you want to specify.
 
B

Bruce Barker

you probably want a multi option approach.

1) file upload using <input type=file>. this works in all browsers. to fix
this you need an httpmodule or isapi filter that parses the incoming request
stream and parses out the file and write to a temp dir. you can write or
buy. the downside here is if the upload fails, the client has to start over.

2) an active/ X or plugin component(s) that does an upload (maybe thru dav),
that allows restarting.

3) a downloadable stand alone app to do the uploads (java might be good
here, must be local app as an applet can not access the disk)

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top