Re: Multiple File upload

Tech-Archive recommends: Fix windows errors by optimizing your registry



PJ

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

???

Thanks


"PJ on Development" <pjondevelopment@xxxxxxxxx> wrote in message
news:1194398264.559737.115070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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...@xxxxxxxxxxx> 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




.



Relevant Pages

  • Re: Multiple File upload
    ... The problem with progress bar and upload from the browser is that the ... I would like to create a multiple file upload page, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Using AJAX to do inline, inpage file uploads
    ... > I was wondering if anyone knew of any projects extending the inline upload ... > progress bar to utilize an inpage image uploader with bar, ... When someone has to upload a 50 magabyte file for instance they ...
    (comp.lang.javascript)
  • Re: Progress Bar help
    ... a progress bar for an upload is much different than one for a long running ... you will be depending on the browser sending the content length. ... > Sub UploadData ...
    (microsoft.public.dotnet.framework.aspnet)
  • Multiple File upload
    ... Some people like to go on vacation during christmas time, ... I would like to create a multiple file upload page, ... Creating a page that uploads multiple files, without the progress bar is not ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Progress bar no longer can be seen - why?
    ... lets you know how much more time until completion of the upload. ... However, today while uploading (with the progress bar visible), the ... Thanks very much, Micky, for checking the site. ...
    (microsoft.public.windowsxp.general)