Re: Using AJAX to do inline, inpage file uploads




"JMB" <XXXXXX@xxxxxxxx> wrote in message
news:i1%tf.33841$az4.26548@xxxxxxxxxxx
> Hello,
>
> I was wondering if anyone knew of any projects extending the inline upload
> progress bar to utilize an inpage image uploader with bar, without having
> to refresh or go to a seperate page, nor opening a second box for display
> of the progress bar.
>
> I had been using the MegaUpload that was adapted from Raditha's script at
> http://www.raditha.com/upload.php . The MegaUpload script I have been
> using takes the progress bar inpage, instead of opening a new page/box for
> the display of the bar.
>
> Anyhow, here is what I have been wondering. I have projects with large
> amounts of 'application' usage and Web2.0 features, I guess you can say.
> This includes dynamic form submissions, inline graphical interfaces,
> realtime chat, realtime drawing/whiteboarding, etc. The thing I have not
> been able to nail is inline progress bar usage with uploaded images/files.
> Does anyone know about any projects currently working on this very thing
> that I could contribute to? Or, see some demo code to have a better idea.
>
> I am guessing my request to the server should be a put, but then I would
> need what from there modifed to handle this? As PHP sux for it, and the
> closest I have gotten is using a modified verision of OB_ functions. The
> Perl solution seems more feasible, but I would not know where to begin
> using the async nature of AJAX, I think sending the file via PUT method,
> and the form variables(if any), submitted during this display of the bar
> from a seperate thread to the server for storage.
>
> I know the uploader is PHP/Perl, but with it being an AJAX-savy script,
> posting here was a starting point.
>
> Thanks in advance for direction to any/all projects, as well as
> suggestions, help and comments.
>

JMB,

The posts above are quite right about Base64 encoding and size fluctuations.
However, in my case I had clients who wanted to have some sort of progress
indicator. When someone has to upload a 50 magabyte file for instance they
want to know that the upload is still in progress after 1 minute.

My program works by using the CONTENT_LENGTH of the request as the total
size. Then, using AJAX, it retrieves the current size of the file on the
server and creates a progress bar based on the that.

Is it 100% accurate? NO!

Does it satisfy the customer by providing them with exactly what they
wanted? YES!

And does it actually work with a fair amount of accuracy? YES!



.



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: 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, ...
    (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)
  • 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)