473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

asynchronous file upload

Hi,

I want to write an asynchronous file uploader control so that I can display
a progress bar as the file uploads.

The problem I having is that .net waits for the upload stream to finish
before passing the request onto the page or IHTTPHandler.

Does anyone know how to do this. (I've seen controls that do this so it must
be possible.)
Oct 4 '06 #1
2 3270
Most of the upload controls do one of two things:

1. Estimate and fake it. These look like they are keeping you up to date,
but it is a fake.
2. Are actual applications on the client side, like ActiveX controls or Java
applets.

You could, potentially, create a counter using Ajax and continuously pinging
the server, but the norm is an embedded control of some sort.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"oliverthered" <ol**********@discussions.microsoft.comwrote in message
news:48**********************************@microsof t.com...
Hi,

I want to write an asynchronous file uploader control so that I can
display
a progress bar as the file uploads.

The problem I having is that .net waits for the upload stream to finish
before passing the request onto the page or IHTTPHandler.

Does anyone know how to do this. (I've seen controls that do this so it
must
be possible.)

Oct 4 '06 #2


"Cowboy (Gregory A. Beamer)" wrote:
Most of the upload controls do one of two things:

1. Estimate and fake it. These look like they are keeping you up to date,
but it is a fake.
2. Are actual applications on the client side, like ActiveX controls or Java
applets.

You could, potentially, create a counter using Ajax and continuously pinging
the server, but the norm is an embedded control of some sort.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Because the IHTTPHandler or page request doesn't get called before all the
data has uploaded it's impossible to put anything on the server site to
monitor the upload and report the sttus back (appart from complete and I can
do that in a standard asp.net page anyway).

There are a number of pure .net controls out their that somehow intercept
the data between IIS and IHTTPHandler

Oct 4 '06 #3

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

Similar topics

2
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...
0
by: Simple Simon | last post by:
Hi, excuse the long post and plz read on :) My web application needs to upload a .csv & .zip file, as well as, import the .csv into a (Sql2000) table and unzip the .zip file to a directory on...
0
by: Simple Simon | last post by:
Hi, I'm having a little trouble with the architecture of my Web App. Bascially, I need to import some MLS data into a SQL Db from (3) comma-delimited files, as well as, upload and extract the...
13
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...
1
by: RJN | last post by:
Hi I have 2 operations to perform one is to upload data and the second is to generate report. Both take huge time(more than 20 mins and I believe by that time session would have expired) and...
2
by: Marco Assandri | last post by:
Hi, I saw some web sites where I can upload file asynchronously. May I do the same think with asp.net?
0
by: Bishoy George | last post by:
Hi, I have a asp.net 2.0 web application. I want to implement the asynchronous model through http handler in web.config ...
7
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"...
6
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...
2
Frinavale
by: Frinavale | last post by:
I'm attempting to upload a file asynchronously to the server by using an IFrame. I have an Asp.NET FileUpload control on the page (which renders as an <input type="file> HTML element) and a submit...
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
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,...
0
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...
1
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...
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
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...
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...
1
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.