search for: copy_to_temp_file

Displaying 3 results from an estimated 3 matches for "copy_to_temp_file".

2007 Mar 28
1
attachment_fu & update_attributes... bug?
...ls.rb:1377:in `fu_each_src_dest'' /usr/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0'' /usr/lib/ruby/1.8/fileutils.rb:1375:in `fu_each_src_dest'' /usr/lib/ruby/1.8/fileutils.rb:382:in `cp'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:154:in `copy_to_temp_file'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/object/misc.rb:23:in `returning'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:152:in `copy_to_temp_file'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:288:in `c...
2007 Mar 11
4
Faking it... import local files into attachment_fu
...of a model that uses attachment_fu for thumbnailing, etc. Rather than uploading the file via a form, I want to populate the params[:image][:uploaded_data] with data from a file already on the server''s file system. So far, I''ve been able to copy to an instance of Tempfile via the copy_to_temp_file method I jacked from attachment_fu and pass that as the value of :uploaded_data, but attachment_fu is still not happy. The Tempfile created via a multipart form and a browser has content_type set, as well as having the path be how the object is identified (i.e. - #<File:/tmp/file/path>). I...
2007 Jun 29
1
attachment_fu validation error
I have this class: class Logo < ActiveRecord::Base has_one :something has_attachment :content_type => :image, :storage => :db_file, :max_size => 500.kilobytes :thumbnails => {:web => ''150x100'', :pdf => ''150x100''}, :processor =>