473,472 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

File transfer between IIS 6.0 and MAC

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.
Nov 19 '05 #1
2 1509
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.

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" <ra********@hotmail.com> wrote in message
news:eI*************@TK2MSFTNGP15.phx.gbl... 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.

Nov 19 '05 #2
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" <ra********@hotmail.com> wrote in message
news:eI*************@TK2MSFTNGP15.phx.gbl...
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.

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to...
11
by: Stephan Steiner | last post by:
Hi Generally, FileInfo fi = new FileInfo(path); long size = fi.Length; gets you the length of a file in bytes. However, when copying files, even while the copy operation is still in...
8
by: Xarky | last post by:
Hi, I am downloading a GIF file(as a mail attachement) with this file format, Content-Transfer-Encoding: base64; Now I am writing the downloaded data to a file with this technique: ...
1
by: Alex | last post by:
Hello, I'm trying to write a little php script to transfert some files from a server to clients (web/http). It's working fin with small files. But transfering big files (try on 1Gb) failed!...
0
by: fiona | last post by:
Yucca Valley, CA, - October 2007: Catalyst Development Corporation, publisher of SocketTools, SocketWrench and LogicGem, today announced the release of Catalyst File Transfer .NET V5.0. For...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.