I''ve seen a few demos online, for php, but I''m looking for a file upload progress bar implementation with Prototype. Can anyone point me in a good direction for one? I''m not using Rails, so I can''t use the upload_progress addon, unfortunately. Thanks for any info Jim _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
For the most part, file upload progress information handling depends on the underlying framework on the server and the web server software itself, because you don''t get that information from the browser. So you need to look for something that''s specific to the server-side stuff you use. -Thomas Am 01.04.2006 um 01:37 schrieb Jim Geurts:> I''ve seen a few demos online, for php, but I''m looking for a file > upload progress bar implementation with Prototype. Can anyone > point me in a good direction for one? > > I''m not using Rails, so I can''t use the upload_progress addon, > unfortunately. > > Thanks for any info > > Jim > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Here are some links I have that are applicable: http://tomas.epineer.se/archives/3 http://www.devpro.it/upload_progress/ http://bluga.net/projects/uploadProgressMeter/ http://www.raditha.com/php/progress.php _____ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jim Geurts Sent: Friday, March 31, 2006 6:38 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] File upload progress bar I''ve seen a few demos online, for php, but I''m looking for a file upload progress bar implementation with Prototype. Can anyone point me in a good direction for one? I''m not using Rails, so I can''t use the upload_progress addon, unfortunately. Thanks for any info Jim _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
And of course it appears that MS and asp.net just blows for that kind of stuff. Thanks for the info anyway. On 3/31/06, louis d walch <dev-bTJQVtzvk6sqDJ6do+/SaQ@public.gmane.org> wrote:> > Here are some links I have that are applicable: > > > > http://tomas.epineer.se/archives/3 > > http://www.devpro.it/upload_progress/ > > http://bluga.net/projects/uploadProgressMeter/ > > http://www.raditha.com/php/progress.php > > > > > > > ------------------------------ > > *From:* rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto: > rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] *On Behalf Of *Jim Geurts > *Sent:* Friday, March 31, 2006 6:38 PM > *To:* rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > *Subject:* [Rails-spinoffs] File upload progress bar > > > > I''ve seen a few demos online, for php, but I''m looking for a file upload > progress bar implementation with Prototype. Can anyone point me in a good > direction for one? > > I''m not using Rails, so I can''t use the upload_progress addon, > unfortunately. > > Thanks for any info > > Jim > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>From my understanding, it isn''t too hard to create your own progress reader.When a file is submitted a HTTP Header "Content-Length" is sent, which tells the size of the file in bytes. Then you can repeatedly check the upload status by getting the file size from the OS temp directory. All you need is the total file size and the current file size to create a little percentage bar. This has been done in ColdFusion very easily. Don''t know if .NET is going to be painless. -Daniel -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jim Geurts Sent: Saturday, April 01, 2006 2:28 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] File upload progress bar And of course it appears that MS and asp.net just blows for that kind of stuff. Thanks for the info anyway. On 3/31/06, louis d walch <dev-bTJQVtzvk6sqDJ6do+/SaQ@public.gmane.org> wrote: Here are some links I have that are applicable: http://tomas.epineer.se/archives/3 http://www.devpro.it/upload_progress/ http://bluga.net/projects/uploadProgressMeter/ http://www.raditha.com/php/progress.php _____ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jim Geurts Sent: Friday, March 31, 2006 6:38 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] File upload progress bar I''ve seen a few demos online, for php, but I''m looking for a file upload progress bar implementation with Prototype. Can anyone point me in a good direction for one? I''m not using Rails, so I can''t use the upload_progress addon, unfortunately. Thanks for any info Jim _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Along the same lines, I wonder what would be the best way to have a progress indicator when loading JavaScript files. Prototype + Scriptaculous can get quite heavy. Is there a way to load the minimum required JS then display a progress wheel or something while the rest of the JS files are being loaded? Has anybody implmented somehting along these lines? Tench On 01. April 2006., at 10:37, Daniel Elmore wrote:> From my understanding, it isn’t too hard to create your own > progress reader. When a file is submitted a HTTP Header “Content- > Length” is sent, which tells the size of the file in bytes. Then > you can repeatedly check the upload status by getting the file size > from the OS temp directory. All you need is the total file size and > the current file size to create a little percentage bar. > > > This has been done in ColdFusion very easily. Don’t know if .NET is > going to be painless. > > > -Daniel > > > > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- > spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jim Geurts > Sent: Saturday, April 01, 2006 2:28 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails-spinoffs] File upload progress bar > > > And of course it appears that MS and asp.net just blows for that > kind of stuff. Thanks for the info anyway. > > > > On 3/31/06, louis d walch <dev-bTJQVtzvk6sqDJ6do+/SaQ@public.gmane.org> wrote: > > Here are some links I have that are applicable: > > > http://tomas.epineer.se/archives/3 > > http://www.devpro.it/upload_progress/ > > http://bluga.net/projects/uploadProgressMeter/ > > http://www.raditha.com/php/progress.php > > > > > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- > spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jim Geurts > Sent: Friday, March 31, 2006 6:38 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] File upload progress bar > > > I''ve seen a few demos online, for php, but I''m looking for a file > upload progress bar implementation with Prototype. Can anyone > point me in a good direction for one? > > I''m not using Rails, so I can''t use the upload_progress addon, > unfortunately. > > Thanks for any info > > Jim > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Shouldn''t your browser do this for you? Anyway, be sure to add correct content expirations headers for you webserver, this will make sites/app making use of js libraries fly, as the browser will only download the js files once, and won''t try again for a period of time you tell it. Example for Apache (with mod_expires/mod_headers loaded): ExpiresActive On ExpiresByType text/javascript "access plus 1 month" mod_gzip is another beautiful thing to look into. -Thomas Am 01.04.2006 um 10:41 schrieb Tench:> Along the same lines, I wonder what would be the best way to have a > progress indicator when loading JavaScript files. Prototype + > Scriptaculous can get quite heavy. Is there a way to load the > minimum required JS then display a progress wheel or something > while the rest of the JS files are being loaded? Has anybody > implmented somehting along these lines? > > Tench > > > On 01. April 2006., at 10:37, Daniel Elmore wrote: > >> From my understanding, it isn’t too hard to create your own >> progress reader. When a file is submitted a HTTP Header “Content- >> Length” is sent, which tells the size of the file in bytes. Then >> you can repeatedly check the upload status by getting the file >> size from the OS temp directory. All you need is the total file >> size and the current file size to create a little percentage bar. >> >> >> This has been done in ColdFusion very easily. Don’t know if .NET >> is going to be painless. >> >> >> -Daniel >> >> >> >> -----Original Message----- >> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- >> spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jim Geurts >> Sent: Saturday, April 01, 2006 2:28 AM >> To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> Subject: Re: [Rails-spinoffs] File upload progress bar >> >> >> And of course it appears that MS and asp.net just blows for that >> kind of stuff. Thanks for the info anyway. >> >> >> >> On 3/31/06, louis d walch <dev-bTJQVtzvk6sqDJ6do+/SaQ@public.gmane.org> wrote: >> >> Here are some links I have that are applicable: >> >> >> http://tomas.epineer.se/archives/3 >> >> http://www.devpro.it/upload_progress/ >> >> http://bluga.net/projects/uploadProgressMeter/ >> >> http://www.raditha.com/php/progress.php >> >> >> >> >> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- >> spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jim Geurts >> Sent: Friday, March 31, 2006 6:38 PM >> To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> Subject: [Rails-spinoffs] File upload progress bar >> >> >> I''ve seen a few demos online, for php, but I''m looking for a file >> upload progress bar implementation with Prototype. Can anyone >> point me in a good direction for one? >> >> I''m not using Rails, so I can''t use the upload_progress addon, >> unfortunately. >> >> Thanks for any info >> >> Jim >> >> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> >> >> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Daniel, Could you go into more depth with a coldfusion example? Like on a windows box, what is the temp directory to check for, etc? Any info would be greatly appreciated. Thank You, Frank Daniel Elmore wrote:>>From my understanding, it isn''t too hard to create your own progress reader. > When a file is submitted a HTTP Header "Content-Length" is sent, which > tells > the size of the file in bytes. Then you can repeatedly check the upload > status by getting the file size from the OS temp directory. All you need > is > the total file size and the current file size to create a little > percentage > bar. > > > > This has been done in ColdFusion very easily. Don''t know if .NET is > going to > be painless. > > > > -Daniel-- Posted via http://www.ruby-forum.com/.
We use the lasso development environment. But I think the approach is general. We set a session variable on the page that launches the activity. The server side updates this variable as a percentage as it performs the activity. Then we sue AJAX.periodical to check the value for this variable and return it to the main page for display. Deco On Apr 9, 2006, at 10:26 AM, Frank wrote:> Daniel, > Could you go into more depth with a coldfusion example? Like on a > windows box, what is the temp directory to check for, etc? > > Any info would be greatly appreciated. > > Thank You, > Frank > > Daniel Elmore wrote: >>> From my understanding, it isn''t too hard to create your own >>> progress reader. >> When a file is submitted a HTTP Header "Content-Length" is sent, >> which >> tells >> the size of the file in bytes. Then you can repeatedly check the >> upload >> status by getting the file size from the OS temp directory. All >> you need >> is >> the total file size and the current file size to create a little >> percentage >> bar. >> >> >> >> This has been done in ColdFusion very easily. Don''t know if .NET is >> going to >> be painless. >> >> >> >> -Daniel > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I did it through coldfusion by calling Java classes. Java takes care of all the temp directory checking for you by using the Commons file upload libraries. Here''s a good article to get started: http://blogs.missiondata.com/?p=28 -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Sent: Sunday, April 09, 2006 11:27 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] Re: RE: File upload progress bar Daniel, Could you go into more depth with a coldfusion example? Like on a windows box, what is the temp directory to check for, etc? Any info would be greatly appreciated. Thank You, Frank Daniel Elmore wrote:>>From my understanding, it isn''t too hard to create your own progressreader.> When a file is submitted a HTTP Header "Content-Length" is sent, which > tells > the size of the file in bytes. Then you can repeatedly check the upload > status by getting the file size from the OS temp directory. All you need > is > the total file size and the current file size to create a little > percentage > bar. > > > > This has been done in ColdFusion very easily. Don''t know if .NET is > going to > be painless. > > > > -Daniel-- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs