473,385 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 3268
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.