Sha256: cd44bed33b14c812b46c5994ac63b42bb0184c218379a27796ce5f36e0397978
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
class Files < Merb::Controller def start render :layout => :none end def index @args = params render :action => 'start' end def upload puts params.inspect FileUtils.mv params[:data][:tempfile].path, Merb::Server.config[:dist_root]+"/public/files/#{params[:data][:filename]}" render_no_layout end def progress puts params.inspect Mongrel::Uploads.debug = true @upstatus = Mongrel::Uploads.check(params[:upload_id]) render_js 'progress' end def file send_file params[:file] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb-0.0.8 | examples/sample_app/dist/app/controllers/files.rb |