search for: upload_status

Displaying 6 results from an estimated 6 matches for "upload_status".

2006 Mar 08
2
Upload progress update bar question
...m? Thanks, Wes ========================================================= upload_progress_update_bar_js(percent=nil) Javascript helper that will create a script that will change the width of the background progress bar container. Include this in the script portion of your view rendered by your upload_status action to automatically find and update the progress bar. Example (in controller): def upload_status render :inline => "<script><%= update_upload_progress_bar_js %></script>", :layout => false end -- Posted via http://www.ruby-forum.com/.
2006 Mar 13
0
Upload progress problem with Ajax component
...in, and then, when the upload completes, it''s 100% filled in. Environment: Windows XP WEBrick 1.3.1 Rails 1.0 Prototype 1.4 script.aculo.us 1.5.3 I did some debugging and it appears that the Ajax updater call happens twice after I initiate the upload action, and then no more calls to upload_status occur. However, when the upload completes, then all of the Ajax updater calls begin to happen per the degradation schedule. Also, when the save_HTML (the actual upload method) completes, the view save_HTML.rhtml does not get called. It''s like something gets stuck and doesn''t...
2006 Jun 16
2
Javascript error?
...ploadProgressBar1'').firstChild.firstChild.style.width=''0%''}; new Effect.Appear(''status''); if (document.uploadStatus1) { document.uploadStatus1.stop(); }document.uploadStatus1 = new Ajax.PeriodicalUpdater(''UploadStatus1'',''/album/upload_status?upload_id=1'', Object.extend({asynchronous:true, evalScripts:true, onComplete:function(request){$(''UploadStatus1'').innerHTML=''Upload finished.'';if($(''UploadProgressBar1'')){$(''UploadProgressBar1'').firstChild.firstChild.s...
2006 Jan 06
4
Upload Progress Bar Problems
...v| logger.debug("Debug: #{k}----->#{v.completed_percent}")} sleep(3) upload_progress.message = "Continuing processing stage 2..." session.update sleep(3) redirect_to :action => ''show'' finish_upload_status "Hello ''#{@message}''" end end My problem is that no matter the file size by the time to debug statement is reached the entire file has always been uploaded. So the progress bar jumps from 1 to 100 with no in between steps. I can step through with a debugger...
2006 Feb 04
0
form_tag_with_upload_progress
hi all! i have a PictureController with an upload action: class PictureController < ApplicationController . . . upload_status_for :upload . . . def upload if params[:picture] @message = "File uploaded: " + params[:picture][:file].size.to_s picture = Picture.save(params[:picture]) session.update finish_upload_status "''#{@message}''" end end . . . end and the model:...
2006 Feb 22
13
Mongrel 0.3.6 -- Win32 Service/Rails Real Good
Hello Folks, This release of Mongrel should make the win32 folks go crazy. Thanks to Luis Lavena it supports a full service system for installing any Rails app as a service. This lets you start your rails apps from either the command line or the Service console. Stopping is still a bit problematic but we hope to have that solved in the next release. You win32 folks should probably send Luis