473,804 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
+ 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 1531
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
maxRequestLengt h="MaxNumberOfK ilobytes"
/>

<httpRuntime
maxRequestLengt h="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="Howeve rLongItTakesToU ploadTheLargest File"
/>

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********@hot mail.com> wrote in message
news:eI******** *****@TK2MSFTNG P15.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********@hot mail.com> wrote in message
news:eI******** *****@TK2MSFTNG P15.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
6642
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 transfer data across.On the serve I am using Socket 2 API (recv function to read bytes)and not using ..NET. I use FileStream to open the file on the pocket pc, then associate a BinaryReader object with the stream and call ReadBytes to read all the...
11
32589
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 progress, the filesize, as indicated in Windows Explorer or derived with the above two lines of code, will be the size of the file once the copy operation has completed. Is there a way to
8
7587
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: streamWriter = new StreamWriter(@startupPath+"\\"+filename, false); streamWriter.WriteLine(data); I am not specifying any file Encoding. When I try to open the file
1
8128
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! The transfert is stoped randomly (sometimes at 25%, sometimes at 75%,...). And I don't understand why?! :/
0
2080
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 developers who are creating .NET applications, the File Transfer .NET component offers a comprehensive interface for uploading and downloading files. The Catalyst File Transfer .NET component is a managed code component that is fully compatible with...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
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 we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.