Ruby on Rails
Upload Progress Bar (Version #10)

Previously a part of the Rails trunk this plugin modifies the CGI libraries to record the progress of file uploads and provides view methods to make the process of adding file upload progress a snap!

See http://sean.treadway.info/articles/2005/07/18/upload-progress-checklist to make sure you have the appropriate environment.
%{color:red}This link is broken – if you find a copy of the page, please post a new link. In the meantime, the WayBack Machine has a copy %

In your view:


<%= form_tag_with_upload_progress %>
<%= file_field :model, :file_column %>
<%= submit_tag 'Upload' %>
<%= upload_status_tag %>
<%= end_form_tag %>

In your controller:


class MyController < ApplicationController
  upload_status_for :my_upload_action

  def my_upload_action
    # treat this as a normal action
  end
end

Previously a part of the Rails trunk this plugin modifies the CGI libraries to record the progress of file uploads and provides view methods to make the process of adding file upload progress a snap!

See http://sean.treadway.info/articles/2005/07/18/upload-progress-checklist to make sure you have the appropriate environment.
%{color:red}This link is broken – if you find a copy of the page, please post a new link. In the meantime, the WayBack Machine has a copy %

In your view:


<%= form_tag_with_upload_progress %>
<%= file_field :model, :file_column %>
<%= submit_tag 'Upload' %>
<%= upload_status_tag %>
<%= end_form_tag %>

In your controller:


class MyController < ApplicationController
  upload_status_for :my_upload_action

  def my_upload_action
    # treat this as a normal action
  end
end