attachment-fu

rails attachment_fu public_filename problem

Hi, attachment_fu generates wrong public_filename. >> pic.thumbnails => ProductPicture id: 12331, product_id: nil, parent_id: 12330, content_type: "image/png", filename: "b_9788994035109_mid.png", thumbnail: "mid", size: 16562, width: 205, height: 205, created_at: "2009-10-05 02:43:50", updated_at: "2009-10-05 02:43:50", ProductPictu...

What is the best file upload/attachment plugin rails?

What are the pros and cons between PaperClip and Attachment_fu ? Are there any other plugins that would you recommend ? Is possible to support multiple file uploads and progress feedback on upload using these plugins and Passenger + Apache ...

How to improve performance with our Rails image model and attachment_fu?

I've been trying to improve performance our app. The worst performing area seems to be the creation of our Image model, which uses attachment_fu: class Image < Attachment ... has_attachment :content_type => :image, :max_size => 100.megabytes, :storage => :file_system, :path_prefix => 'public/uploaded/images', :thum...

MMS2R and Multiple Images Rails

Here's my code: require 'mms2r' class IncomingMailHandler < ActionMailer::Base ## # Receives email(s) from MMS-Email or regular email and # uploads that content the user's photos. # TODO: Use beanstalkd for background queueing and processing. def receive(email) begin mms = MMS2R::Media.new(email) ## # Ok to fi...

Attachment_fu: how can I selectively prevent thumbnail creation?

I'm happily using attachment_fu to handle file uploads and thumbnail creation. However, for some (but not all!) cases I would like to suppress the creation of thumbnails. How would I hack attachment_fu to do this? Specifics: I have a traditional attachment_fu model class Pic < ActiveRecord::Base has_attachment :content_type => :ima...

Rails, Attachment_fu - deep copy of database storage attachments

I have a model, let's say Attachments, that uses attachment_fu to accept file uploads from the user. I want to "deep copy" (or in Ruby-ese, deep clone) an Attachment, thus creating a completely new binary object in the "db_files" table. I've found that it is not quite a solved problem yet. This blog posting: http://www.williambharding.c...

Flickr style resizing with attachment_fu

I want attachment_fu to resize my thumbnails in a similar way to how flickr, facebook and twitter handle this: If I want a 100x100 thumbnail I want the thumbnail to be exactly 100x100 with any excess cropped off so that the aspect ratio is preserved. Any ideas? ...

attachment_fu and multipart form_for

Woo. My first question. I have a feeling I'm overlooking something pretty basic in the construction of my form. I'm using attachment_fu and can't get this form to pass anything besides the file data. A user has_many profiles and a profile has_many documents. My form looks like this: <%= error_messages_for :document %> <% form_for([@...

WYSIWYG editor for Rails with Paperclip Integration

I'm looking for a way of integrating a WYSIWYG editor into my rails app so it will use Paperclip for Image / File uploads. What I want is this: User can use a WYSIWYG field to create some rich text. They can upload an image into this text but the image will be stored nicely in a DB (hopefully using something like Paperclip) instead of j...

Attachment_fu: can't disable :partition option

I'm trying to use the Attachment_Fu plugin in a Rails project, and want to customize the paths where uploaded files are saved. The documentation shows this option: :partition # Whether to partiton files in directories like /0000/0001/image.jpg. Default is true. (The 0001 part is an ID from a table.) I don't want that, s...

Heroku and Refinerycms: Application failed to start ~ attachment_fu problem

Ok so I'm trying to get Refinerycms working with Heroku, and I'm new at all of this. I've set up an amazon s3 account and added keys and ids to the amazon_s3.yml files. When launched on Heroku at gart.heroku.com I get the following error: App failed to start /disk1/home/slugs/141557_e8490b3_d5eb/mnt/vendor/plugins/attachment_fu/lib/t...

Attach 1 or more (non image) files to rails application, with having to install an image-processing library

Hi all, I'm currently learning rails by creating a simple project management app. I've gotten to the point where I would like to be allow a user upload multiple files - pdfs, docs, xls etc. The user only needs to be able to attach one file at a time, but the possibilty to have multiple documents associated with a project is a must. I'v...

Attachment Fu error on MAC OS X and Ubuntu 9.10

Greetings. I am encountering an issue with attachment fu and s3. Details: Production server - Ubuntu - imagemagick, rmagick aws-s3 gems are installed . Error starting app: vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb:173:in `included': undefined method `symbolize_keys' for nil:NilClass (NoMethodE...

Need ideas for reprocessing images using attachment_fu

Hi, I discovered a bug in my Rails app due to Rails app and gems upgrades and undocumented code from the previous developers. I have a lot of images that have been processed, but not sized correctly using attachment_fu. All of the images that were uploaded since the upgrade need to be resized correctly. Does anyone have any ideas to ...

Attachment_fu error

Hello, I am getting an error while trying to upload images on an Ubuntu machine that's running Rails 2.3.4, Ruby 1.8.6 using attachment_fu with image science. FreeImage exception for type ???: IPTC: Invalid key 'Tag 0x025C' The error seems to point to this line in the image_science_processor in the attachment_fu plugin: def with_imag...

attachment_fu and RMagick

After finally getting RMagick installed on my Mac I have set up attachment_fu according to the tutorial here: http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu&amp;gt when I try and upload a file via the upload form I get around 80 messages like these: /Library/Ruby/Gems/1.8/gems/rmagick-2.13.1/lib/RMagick.rb:44: warning: already...

Attachment_fu file saving problem

Attachment_fu plugin is kind of old, but I have to modify an old app and I can't use another plugin like paperclip etc. So here's the code without further ado Submissions table structure --------------------------- | content_type | varchar(255) | YES | | NULL | filename | varchar(255) | YES | | NULL app/mo...

With the attachment_fu rails plugin, is there any way to delete files uploaded to Amazon S3?

Let's say I'm using attachment_fu to attach profile pics to user profiles in a system, with Amazon S3 used as the actual file storage. When users upload new profile pics, I'd like to replace the attached file with the new one. I can do this within my database (i.e. the file metadata) easily, but attachment_fu doesn't seem to provide meth...

File upload to a specific folder

I am using attachment_fu for file uploading... it saves the files to asset/0000/0001... something like this... i want to upload a file to a specific folder defined by a user... for example images to a specific folder... just like galleries... how will i achieve this... help me out here... thankx take care.. ...

MIME type handling in uploading a serving files through attachment_fu

I'm currently using attachment_fu to handle file uploads, and while the plugin provides a nice catchall for images in :content_type => [:image], nothing similar seems to exist for broader buckets. None of the uploads will be executed, per se, only saved to disk and served back at a later time. So a few related questions. Is there any ...