I had a look at a few upload progress bars in the past and they used
server side queries, which I agree is not ideal. So let me know if you
find a pure client side one.

http://plugins.jquery.com/project/jquploader
http://github.com/drogus/jquery-upload-progress

Richard


On May 25, 11:02 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> I do not think this is a good idea but the server may now know. The
> data may be uploaded to ram (or temporary buffer) allocated by a
> thread and another request may not have access yo (or be able to
> idetify which) thread. I thin it is the client that needs to keep
> track and there are jquery plugins that do this.
>
> Massimo
>
> On May 24, 7:15 pm, Richard <richar...@gmail.com> wrote:
>
> > I think you will need to use AJAX to periodically query the server to
> > determine how much is uploaded.
>
> > On May 24, 5:23 pm, Alexey Nezhdanov <snak...@gmail.com> wrote:
>
> > > And here is another thing with the same javascript app. While uploading a 
> > > file
> > > it checks for the upload status. It would be more proper, of course, just 
> > > to
> > > ask browser, how much has been sent already, but I do not know if 
> > > javascript
> > > is allowed to do that. So it asks web2py. And though web2py is 
> > > multithreaded
> > > and I correctly receive these check requests - I do not have any info to
> > > reply back - fileupload procedure is called only when upload completed - 
> > > and
> > > it's too late to reply to any checks.
>
> > > Is there any way to add the detection of upload start before it completed?
> > > I'm thinking of wrapping some of web2py's internal procedures, but I'm not
> > > sure if I can access session instance from there.
>
> > > --
> > > Sincerely yours
> > > Alexey Nezhdanov
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to