473,804 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2106
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******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP12.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******@discu ssions.microsof t.com> wrote in message
news:70******** *************** ***********@mic rosoft.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******** ******@TK2MSFTN GP12.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******** ********@TK2MSF TNGP14.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******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP12.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2946
by: Tihon | last post by:
Hello! I again need your help, just can't understand whats going on. Got this upload pictures form and it's having problem handling large files (~1.5 - 2 MB). Everything works fine if i just upload files, like this: copy ($myfile, $uploadfolder . "/" . $myfile_name); Everything works fine, it can process large files and everything, but i need to make sure that people only upload pictures, so i change
15
3223
by: Simon | last post by:
I would like to create a very basic file upload add image form to add to my web site and to keep them in a "tmp" directory within my web hosting file manager once uploaded. I understand the basic html for the form and the basic php scripting but the fine details ie method post etc needs help also at this stage I dont want to involve mysql data base. were should I start.
2
3932
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give them a caption, storing the caption and filename in a text file. It's a bit buggy when removing the photos and captions from the file, and also in displaying them on the delete page. you can see it in action at www.4am.com.au/gallery/upload.php...
13
4330
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I cleanup files that were uploaded -- but obviously left stranded when the users aborted/gave up writting...
2
3441
by: mark | last post by:
How do I detect that a particular form element is a file upload or if the file upload has worked? In the Python cgi module documentation I found suggested code... form = cgi.FieldStorage() fileitem = form if fileitem.file: # It's an uploaded file; count lines
7
3192
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file" name="file_1" size=46 /><input type=submit /> so, after adding a few files, the input fields look like this:
2
7656
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but don't have any luck is to do a form validation. This script requires the files: db-file-to-disk.asp and _upload.asp. There is a DESCRIPTION field in the db-file-to-disk.asp file, what I want to do is the user has to field out this fied before...
1
5464
by: chrisj | last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully. In this modified version there are two groups that use this upload script. Members of one group get automatically re-directed after uploading. However, this member group never gets the benefit of knowing if they've uploaded an incorrect file size or incorrect file extension. Members from the second group do see the "exceeds max file...
6
3839
Jacotheron
by: Jacotheron | last post by:
I need a PHP script that can upload music files (mp3). The script is for a home project I have started a while ago. I have a MySQL database of all the music that I have. Other computers on the network should be able to connect to the database and run queries on the database or upload new music that does not yet exist on the database. The uploaded file's name should be in the following format: ARTIST - TITLE.mp3. I have the code to upload images,...
7
7162
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and Silverlight 2.0. To get these tools please visit this page Get Started : The Official Microsoft Silverlight Site and follow Step 1. Occasionally you find the need to have users upload multiple files at once. You could use multiple FileUpload...
0
9711
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9591
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,...
1
10331
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,...
0
10087
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9166
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6861
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
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
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
2
3831
muto222
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.