Connecting Tech Pros Worldwide Forums | Help | Site Map

File transfer between IIS 6.0 and MAC

Raj Dhrolia
Guest
 
Posts: n/a
#1: Nov 19 '05
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.



Juan T. Llibre
Guest
 
Posts: n/a
#2: Nov 19 '05

re: File transfer between IIS 6.0 and MAC


re:[color=blue]
> Can anyone suggest me best way to upload large files (>100-500MB)[/color]

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.



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
======================================
"Raj Dhrolia" <rajdhrolia@hotmail.com> wrote in message
news:eIHk63qvFHA.460@TK2MSFTNGP15.phx.gbl...[color=blue]
> 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.
>
>[/color]


Bruce Barker
Guest
 
Posts: n/a
#3: Nov 19 '05

re: File transfer between IIS 6.0 and MAC


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)



"Raj Dhrolia" <rajdhrolia@hotmail.com> wrote in message
news:eIHk63qvFHA.460@TK2MSFTNGP15.phx.gbl...[color=blue]
> 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.
>
>[/color]


Closed Thread


Similar ASP.NET bytes