Displaying 1 result from an estimated 1 matches for "fast_asset".
2011 Jul 07
0
Question of uploading large file using carrierwave, uploadify and nginx upload module
...ll have to execute, however, the
saving object takes much longer time and return late, and the
javascript terminate prematurely, and issues a IO error. In fact, the
file is successfully uploaded and placed in the correct place.
attachments_controller
def create
@attachment = Attachment.new(:fast_asset => params[:fast_asset])
if @attachment.save # the line takes long time to finish
render :nothing => true
else
render ''new''
end
end
attachment model
class Attachment < ActiveRecord::Base
attr_accessible :file, :fast_asset
mount_uploader :fil...