search for: finish_upload_status

Displaying 3 results from an estimated 3 matches for "finish_upload_status".

2006 Jan 06
4
Upload Progress Bar Problems
...ch {|k,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 Mar 09
1
Rails File Upload w/ Ajax Update?
...mp, :user => session[:user], :account => account, :created_at => Time.now) @up.write_to_disk(file) @message = ''File uploaded: '' + file.size.to_s finish_upload_status "''#{@message}''" if request.xhr? @headers[''resource-id''] = @up.id @headers[''Content-Type''] = ''text/html; charset=utf-8'' render :partial => ''resource'',...
2006 Feb 04
0
form_tag_with_upload_progress
...roller 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: class Picture < ActiveRecord::Base . . def self.save(picture) #save the picture here end . . end and the view: <%= form_tag_with_upload_progress({:action => ''upload''}, {:begin => &quot...