Sha256: 85a5489d64f5dd2ad2c154039279d40b2e0dedef795345c783201bd4ef7bcde0
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
class Files < Merb::Controller def start render_no_layout end def index @args = params render '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 DIST_ROOT+'/public/files/'+params[:file] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb-0.0.7 | examples/sample_app/dist/app/controllers/files.rb |