Hi, John
The problem with progress bar and upload from the browser is that the
browser does not have any means -- in scripting that is -- to open and
read the contents of a file.
There are several samples of code in the web that uses ADODB.Stream
(working only in IE), or with some other applet (be it Java, or
Firefox extension).
For security reasons the only way to access a file is through the
INPUT type=file tag. And, as we know, it does not provide any mean of
control over the way it uploads to the server.
The IIS also does not help us there, specially the ASP.NET platform
because it requires to read the whole Request in order to parse it and
present us with all the nice properties that we use in our coding.
Even if you create a custom HttpHandler, writing it from scratch (i.e.
writing a handler that is not an ASPX page) the Request object that
the handler gets is the parsed one.
So from an ASPX perspective, there is no way to upload a file with
progress bar through the browser.
As someone said in another thread here: any upload control with
progress bar in ASP.NET is fake.
If you want to take a look in an Asynchronous Upload, I've one in my
site: http://pjondevelopment.50webs.com/articles/asyncupload.html
It works in both IE and Firefox.
Regards,
Paulo Santos
http://pjondevelopment.50webs.com
> Hi,
>
[quoted text clipped - 20 lines]
>
> John
IfThenElse - 07 Nov 2007 01:53 GMT
PJ
Your link http://pjondevelopment.50webs.com/files/articles/AjaxUpload.zip
to download the code does not work
???
Thanks
> Hi, John
>
[quoted text clipped - 62 lines]
>>
>> John
PJ on Development - 08 Nov 2007 07:18 GMT
My ISP mixed up a bit for a few moments when I was uploading the file.
The link is now working.
Paulo Santos
http://pjondevelopment.50webs.com
> PJ
>
[quoted text clipped - 73 lines]
>
> - Show quoted text -
dean@brettle.com - 09 Nov 2007 00:41 GMT
On Nov 6, 5:17 pm, PJ on Development <pjondevelopm...@gmail.com>
wrote:
> So from an ASPX perspective, there is no way to upload a file with progressbar through the browser.
>
> As someone said in another thread here: any upload control with progressbar in ASP.NET is fake.
Not true. While doing upload with a progress bar in ASP.NET is
certainly challenging, it *is* possible. The trick is to use an
HttpModule (not an HttpHandler) to intercept the HttpWorkerRequest
before ASP.NET parses it. My open-source NeatUpload component does
exactly that and has been used at a variety of sites. See:
http://www.brettle.com/neatupload
Cheers,
--Dean
John Devlon - 12 Nov 2007 10:39 GMT
Dean,
Thanks for the info...
John
> On Nov 6, 5:17 pm, PJ on Development <pjondevelopm...@gmail.com>
> wrote:
[quoted text clipped - 16 lines]
>
> --Dean
John Devlon - 12 Nov 2007 10:39 GMT
Dean,
Thanks for the info...
John
> On Nov 6, 5:17 pm, PJ on Development <pjondevelopm...@gmail.com>
> wrote:
[quoted text clipped - 16 lines]
>
> --Dean
Hi
Did it solve your problem?
i m looking for a simple multiple file upload
and download control.
i m using vwd2005 express,C#.
can you show the code or example on
how do i implement multiple file upload and download?
thanks.
jack.
Leon Mayne - 17 Apr 2008 13:22 GMT
> Hi
>
[quoted text clipped - 7 lines]
> thanks.
> jack.
Hello,
There are
many ways to do this
easiest is to use
several upload controls on one page
like this
http://dotnetslackers.com/articles/aspnet/Upload_multiple_files_using_the_HtmlIn
putFile_control.aspx