Re: Using AJAX to do inline, inpage file uploads
- From: "Sean Berry" <sean@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 2 Jan 2006 09:37:53 -0800
"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!
.
- Follow-Ups:
- Prev by Date: Re: Bittest in Javascript?
- Next by Date: Re: Using AJAX to do inline, inpage file uploads
- Previous by thread: Re: Using AJAX to do inline, inpage file uploads
- Next by thread: Re: Using AJAX to do inline, inpage file uploads
- Index(es):
Relevant Pages
|