469,934 Members | 1,803 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

File upload

Hi all.

I assume that if the user uploads a file from aspx page IIS will put all
future requests to the same page from other users in a line and all of them
will be waiting until this upload finishes. Meaning appl uses just one
thread for all requests. Right?

Is it safe or possible to get uploading request and execute it in a separate
thread safely saving the file in correct location on the server? Or anything
else? Articles, samples? I got a damn big traffic over here.

Thanks much for any help!
Kikoz
Nov 18 '05 #1
5 1920
Kikoz:
It seems to me you are saying that when a user uploads a file, all of IIS
will lock out for all other requests on that page. IIS, like many web
servers, is a fully multi-threaded environment where each request is served
by a separate thread. Therefore there will not be any "waiting" as one
user uploads a file...only that user will be waiting - and that's because
his browser is on a single thread, he/she could open a new browser
window/tab and upload a 2nd file while the first one is uploading.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Kikoz" <ki***@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
Hi all.

I assume that if the user uploads a file from aspx page IIS will put all
future requests to the same page from other users in a line and all of them will be waiting until this upload finishes. Meaning appl uses just one
thread for all requests. Right?

Is it safe or possible to get uploading request and execute it in a separate thread safely saving the file in correct location on the server? Or anything else? Articles, samples? I got a damn big traffic over here.

Thanks much for any help!
Kikoz

Nov 18 '05 #2
Karl, this answers a similar question I've had about file uploads, thanks. Is
there any way to "demote" a thread like this--i.e. I want to make sure the
guy uploading a file is not bogging things down too badly for the interactive
users. I've been tempted to put the file upload code/data on a separate
server, but would prefer to keep it all together.

"Karl Seguin" wrote:
Kikoz:
It seems to me you are saying that when a user uploads a file, all of IIS
will lock out for all other requests on that page. IIS, like many web
servers, is a fully multi-threaded environment where each request is served
by a separate thread. Therefore there will not be any "waiting" as one
user uploads a file...only that user will be waiting - and that's because
his browser is on a single thread, he/she could open a new browser
window/tab and upload a 2nd file while the first one is uploading.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Kikoz" <ki***@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
Hi all.

I assume that if the user uploads a file from aspx page IIS will put all
future requests to the same page from other users in a line and all of

them
will be waiting until this upload finishes. Meaning appl uses just one
thread for all requests. Right?

Is it safe or possible to get uploading request and execute it in a

separate
thread safely saving the file in correct location on the server? Or

anything
else? Articles, samples? I got a damn big traffic over here.

Thanks much for any help!
Kikoz


Nov 18 '05 #3
Bill,
Doubt I can properly answer you, you might want to start a new thread asking
the question again. I know that file uploads in ASP.Net aren't the "nicest"
thing...there used to be a memory deallocation bug in ASP.Net where memory
wasn't properly released...not sure if that's been fixed. You can read up
on it here: http://weblogs.asp.net/mhawley/archi...11/129824.aspx

I think right now your only two alternative is to write an ISAPI filter
(asp.net 2.0 should make this no longer necessary) or look at third party
components which behave better, such as ABCUpload that can save on the fly
to your HDD, thus leaving your precious RAM
intact...http://www.websupergoo.com/abcupload.net-1.htm

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bill Borg" <Bi******@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Karl, this answers a similar question I've had about file uploads, thanks. Is there any way to "demote" a thread like this--i.e. I want to make sure the
guy uploading a file is not bogging things down too badly for the interactive users. I've been tempted to put the file upload code/data on a separate
server, but would prefer to keep it all together.

"Karl Seguin" wrote:
Kikoz:
It seems to me you are saying that when a user uploads a file, all of IIS will lock out for all other requests on that page. IIS, like many web
servers, is a fully multi-threaded environment where each request is served by a separate thread. Therefore there will not be any "waiting" as one user uploads a file...only that user will be waiting - and that's because his browser is on a single thread, he/she could open a new browser
window/tab and upload a 2nd file while the first one is uploading.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Kikoz" <ki***@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
Hi all.

I assume that if the user uploads a file from aspx page IIS will put all future requests to the same page from other users in a line and all of

them
will be waiting until this upload finishes. Meaning appl uses just one
thread for all requests. Right?

Is it safe or possible to get uploading request and execute it in a

separate
thread safely saving the file in correct location on the server? Or

anything
else? Articles, samples? I got a damn big traffic over here.

Thanks much for any help!
Kikoz


Nov 18 '05 #4
Thanks, man.
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Kikoz:
It seems to me you are saying that when a user uploads a file, all of IIS
will lock out for all other requests on that page. IIS, like many web
servers, is a fully multi-threaded environment where each request is
served
by a separate thread. Therefore there will not be any "waiting" as one
user uploads a file...only that user will be waiting - and that's because
his browser is on a single thread, he/she could open a new browser
window/tab and upload a 2nd file while the first one is uploading.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Kikoz" <ki***@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
Hi all.

I assume that if the user uploads a file from aspx page IIS will put all
future requests to the same page from other users in a line and all of

them
will be waiting until this upload finishes. Meaning appl uses just one
thread for all requests. Right?

Is it safe or possible to get uploading request and execute it in a

separate
thread safely saving the file in correct location on the server? Or

anything
else? Articles, samples? I got a damn big traffic over here.

Thanks much for any help!
Kikoz


Nov 18 '05 #5
SoftArtisans has several quality components to help smooth out uploads:
http://fileup.softartisans.com/fileup-131.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Kikoz" <ki***@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
Hi all.

I assume that if the user uploads a file from aspx page IIS will put all
future requests to the same page from other users in a line and all of
them will be waiting until this upload finishes. Meaning appl uses just
one thread for all requests. Right?

Is it safe or possible to get uploading request and execute it in a
separate thread safely saving the file in correct location on the server?
Or anything else? Articles, samples? I got a damn big traffic over here.

Thanks much for any help!
Kikoz

Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tihon | last post: by
15 posts views Thread by Simon | last post: by
2 posts views Thread by matt | last post: by
7 posts views Thread by pbd22 | last post: by
Jacotheron
6 posts views Thread by Jacotheron | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.