Multiple File upload

Hi,

Some people like to go on vacation during christmas time, others try to do
something they never did before....

I would like to create a multiple file upload page, with some nice progress
bars....
You can buy ceveral components on the web but wheres the fun in that ?

Creating a page that uploads multiple files, without the progress bar is not
that difficult.
But how to write the progress bar ?

As I searched the web, I found some bits and peaces of information.
Apparently, uploading the files with a progressbar, needs to be processed in
a completely different approach. Files have to be streamed to the server.

Can someone recommand some books or websites ? Does anyone have some
information or insites ?
Does anyone have some sample code or tutorial?

Thanx

John
John Devlon [ Mi, 07 November 2007 01:07 ] [ ID #1864379 ]

Re: Multiple File upload

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

On Nov 6, 9:07 pm, "John Devlon" <johndev... [at] hotmail.com> wrote:
> Hi,
>
> Some people like to go on vacation during christmas time, others try to do
> something they never did before....
>
> I would like to create a multiple file upload page, with some nice progress
> bars....
> You can buy ceveral components on the web but wheres the fun in that ?
>
> Creating a page that uploads multiple files, without the progress bar is not
> that difficult.
> But how to write the progress bar ?
>
> As I searched the web, I found some bits and peaces of information.
> Apparently, uploading the files with a progressbar, needs to be processed in
> a completely different approach. Files have to be streamed to the server.
>
> Can someone recommand some books or websites ? Does anyone have some
> information or insites ?
> Does anyone have some sample code or tutorial?
>
> Thanx
>
> John
pjondevelopment [ Mi, 07 November 2007 02:17 ] [ ID #1864384 ]

Re: Multiple File upload

PJ

Your link http://pjondevelopment.50webs.com/files/articles/AjaxUpload. zip
to download the code does not work

???

Thanks


"PJ on Development" <pjondevelopment [at] gmail.com> wrote in message
news:1194398264.559737.115070 [at] o80g2000hse.googlegroups.com.. .
> 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
>
> On Nov 6, 9:07 pm, "John Devlon" <johndev... [at] hotmail.com> wrote:
>> Hi,
>>
>> Some people like to go on vacation during christmas time, others try to
>> do
>> something they never did before....
>>
>> I would like to create a multiple file upload page, with some nice
>> progress
>> bars....
>> You can buy ceveral components on the web but wheres the fun in that ?
>>
>> Creating a page that uploads multiple files, without the progress bar is
>> not
>> that difficult.
>> But how to write the progress bar ?
>>
>> As I searched the web, I found some bits and peaces of information.
>> Apparently, uploading the files with a progressbar, needs to be processed
>> in
>> a completely different approach. Files have to be streamed to the server.
>>
>> Can someone recommand some books or websites ? Does anyone have some
>> information or insites ?
>> Does anyone have some sample code or tutorial?
>>
>> Thanx
>>
>> John
>
>
Sql Agentman [ Mi, 07 November 2007 02:53 ] [ ID #1864392 ]

Re: Multiple File upload

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

On Nov 6, 10:53 pm, "IfThenElse" <sql_agent... [at] hotmail.com> wrote:
> PJ
>
> Your link http://pjondevelopment.50webs.com/files/articles/AjaxUpload. zip
> to download the code does not work
>
> ???
>
> Thanks
>
> "PJ on Development" <pjondevelopm... [at] gmail.com> wrote in messagenews:1194398264.559737.115070 [at] o80g2000hse.googlegroup s.com...
>
>
>
> > 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
>
> > On Nov 6, 9:07 pm, "John Devlon" <johndev... [at] hotmail.com> wrote:
> >> Hi,
>
> >> Some people like to go on vacation during christmas time, others try to
> >> do
> >> something they never did before....
>
> >> I would like to create a multiple file upload page, with some nice
> >> progress
> >> bars....
> >> You can buy ceveral components on the web but wheres the fun in that ?
>
> >> Creating a page that uploads multiple files, without the progress bar is
> >> not
> >> that difficult.
> >> But how to write the progress bar ?
>
> >> As I searched the web, I found some bits and peaces of information.
> >> Apparently, uploading the files with a progressbar, needs to be processed
> >> in
> >> a completely different approach. Files have to be streamed to the server.
>
> >> Can someone recommand some books or websites ? Does anyone have some
> >> information or insites ?
> >> Does anyone have some sample code or tutorial?
>
> >> Thanx
>
> >> John- Hide quoted text -
>
> - Show quoted text -
pjondevelopment [ Do, 08 November 2007 08:18 ] [ ID #1865421 ]

Re: Multiple File upload

On Nov 6, 5:17 pm, PJ on Development <pjondevelopm... [at] 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
dean.brettle [ Fr, 09 November 2007 01:41 ] [ ID #1866394 ]

Re: Multiple File upload

Dean,

Thanks for the info...

John


"dean [at] brettle.com" <dean.brettle [at] gmail.com> schreef in bericht
news:1194568872.503356.113230 [at] i38g2000prf.googlegroups.com.. .
> On Nov 6, 5:17 pm, PJ on Development <pjondevelopm... [at] 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 [ Mo, 12 November 2007 11:39 ] [ ID #1868276 ]

Re: Multiple File upload

Dean,

Thanks for the info...

John


"dean [at] brettle.com" <dean.brettle [at] gmail.com> schreef in bericht
news:1194568872.503356.113230 [at] i38g2000prf.googlegroups.com.. .
> On Nov 6, 5:17 pm, PJ on Development <pjondevelopm... [at] 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 [ Mo, 12 November 2007 11:39 ] [ ID #1868277 ]

how do i implement multiple file upload and download?

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.
jack jack[1] [ Do, 17 April 2008 13:59 ] [ ID #1944340 ]

Re: how do i implement multiple file upload and download?

"jack jack" wrote in message news:200841775914zakzapakzak5 [at] yahoo.com...
> 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.

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_fi les_using_the_HtmlInputFile_control.aspx
Leon Mayne [ Do, 17 April 2008 14:22 ] [ ID #1944342 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Multiple File upload

Vorheriges Thema: Redirecting to another site with a large querystring
Nächstes Thema: Register Javascript File