I implemented fileupload with a progress bar using Stripes and commons-fileupload but with a tweaked upload request wrapper. Unfortunately it was for a previous contract and I don't know if I can come by the code. But I'll see what I Can do. :)
Gregg Zenin, Ruslan wrote: > Thank you Leonard! I've seen that thread and tried an example. However it > waits predefined amount of time...which is not known when you upload > file(s)...so the progress bar would not be possible to implement this way > (unless it is a bogus one ;). I guess I'd have to wait for upload events > support in Stripes or try to mess-up with commons-fileupload... > > Best regards, > Ruslan > ________________________________ > > From: [EMAIL PROTECTED] on behalf of Leonard Gestrin > Sent: Mon 4/21/2008 12:11 PM > To: Stripes Users List > Subject: Re: [Stripes-users] FileUpload any events available during upload? > > Some time ago Aaron Porter sent a sample code demonstrating how to add > support for any event of any action to be able to show interim page if > action takes more than preconfigured time. > > I started with sample code and it did work for most the cases. However, > I got side tracked, so I never finished the whole evaluation - it is > still on my back burner. > > I am not sure if it also would work for file uploads, but it might worth > a shot. > > The thread title is 'actions that take long time' in case original > attachment does not go through. > > Leonard > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Zenin, > Ruslan > Sent: Monday, April 21, 2008 7:40 AM > To: [email protected] > Subject: [Stripes-users] FileUpload any events available during upload? > > Hello all, > > Is there any callback events available for Stripes file upload? I'd like > to show a progress of the large uploads (big files that are uploaded via > slow connection). > I've seen some websites that show pretty nice upload progress via AJAX > div tag... > > In Stripes, FileBean becomes available only when upload is > finished...therefore if file takes 5 min to upload...I'd not have a > chance to provide user in the browser with the progress of the upload > (e.g.% uploaded so far, estimated time to finish upload, avg. speed, > etc.) > > Perhaps I'm missing something and callback events for file upload > already exists...or may be there is another way... > > Any ideas/suggestions? > > Best regards, > Ruslan > ************************************************************************ > *************************** > The information in this email is confidential and may be legally > privileged. Access to this email by anyone other than the intended > addressee is unauthorized. If you are not the intended recipient of this > message, any review, disclosure, copying, distribution, retention, or > any action taken or omitted to be taken in reliance on it is prohibited > and may be unlawful. If you are not the intended recipient, please reply > to or forward a copy of this message to the sender and delete the > message, any attachments, and any copies thereof from your system. > ************************************************************************ > *************************** > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j > avaone > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > *************************************************************************************************** > The information in this email is confidential and may be legally privileged. > Access to this email by anyone other than the intended addressee is > unauthorized. If you are not the intended recipient of this message, any > review, disclosure, copying, distribution, retention, or any action taken or > omitted to be taken in reliance on it is prohibited and may be unlawful. If > you are not the intended recipient, please reply to or forward a copy of this > message to the sender and delete the message, any attachments, and any copies > thereof from your system. > *************************************************************************************************** > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
