search for: tmp_file_path

Displaying 1 result from an estimated 1 matches for "tmp_file_path".

Did you mean: temp_file_path
2011 Jul 07
0
Question of uploading large file using carrierwave, uploadify and nginx upload module
...achment model class Attachment < ActiveRecord::Base attr_accessible :file, :fast_asset mount_uploader :file, FileUploader def fast_asset=(file) if file && file.respond_to?(''[]'') tmp_upload_dir = "#{file[''filepath'']}_1" tmp_file_path = "#{tmp_upload_dir}/#{file[''@original_name'']}" FileUtils.mkdir_p(tmp_upload_dir) FileUtils.mv(file[''filepath''], tmp_file_path) self.file = File.open(tmp_file_path) end end end the new uploading form uses the uploadify basic ex...