Questions tagged [attachment-fu]

attachment_fu is a plugin by Rick Olson (aka technoweenie) and is the successor to acts_as_attachment.

attachment_fu is a plugin by Rick Olson (aka technoweenie http://techno-weenie.net) and is the successor to acts_as_attachment.

77 questions
52
votes
3 answers

Rails 3 paperclip vs carrierwave vs dragonfly vs attachment_fu

I'm working on upgrading a Rails 2.3.11, Ruby 1.9.2 app to Rails 3.0.10, and attachment_fu no longer works. I'm looking at changing to paperclip, carrierwave, or dragonfly for file uploads, or maybe a Rails 3 compatible, maintained version of…
12
votes
4 answers

Attachment_fu or Paperclip for Rails3

I have just upgraded to rails3 and when I installed my usual attachment_fu plugin failed. So I started googling it and although I did manage to find a rails3 version there seemed to be a lot more people talking about paperclip with rails3. So…
DJ Forth
  • 1,518
  • 2
  • 18
  • 26
11
votes
3 answers

attachment_fu testing in rails 3

I am trying to write specs for a working file upload functionality using attachment_fu. However, the sample code given by the author for testing requires me to require action_controller/test_process so that I have access to…
Chirantan
  • 15,304
  • 8
  • 49
  • 75
7
votes
3 answers

Has anyone been able to get attachment_fu to work with rails 3?

I have a rails application that is being upgraded from Rails 2.3.5 to Rails 3. It uses attachment_fu for file uploads. We're trying to do this conversion without making DB changes, so I'd like to avoid changing to paperclip or carrierwave at this…
6
votes
1 answer

How to upload images on heroku server using attachment_fu plugin

I have an app in Heroku, I need simple file storage for uploaded images for this I used send_data using attachment_fu plugin. After that I have used the tmp/ directory to write this file and want to display on browser, But these files are not…
Jayashri
  • 4,073
  • 6
  • 25
  • 18
5
votes
2 answers

How to display image which is stored on s3 without storing on harddisk?

In my rails app I have used attachment_fu to upload images and stored it on s3. I want to display these images on browser without retrieving it. How can I display images by giving s3 path? Thanks, Jayashri
Jayashri
  • 4,073
  • 6
  • 25
  • 18
4
votes
1 answer

Systematic way to upgrade from attachment_fu to carrierwave?

I'm working on upgrading an app to Rails 3, and attachment_fu is broken so I'm moving to carrierwave. Is there a systematic process that I can go through to upgrade from attachment_fu to carrierwave? Or a tutorial for it? Right now, I'm more…
keithepley
  • 4,760
  • 3
  • 23
  • 41
4
votes
2 answers

Setting Content-Disposition for AWS S3 with Rails?

I am using Amazon S3 to store and serve user content for user accounts. I need the ability to serve the files either inline (sometimes urls for images will be in blog posts, etc) or as a download. By default when uploading a file to my S3 bucket,…
3
votes
1 answer

Cannot send xlsx as attachment in Rails mailer

I am trying to send an email containing a file attachment created by the user. attachments[document.display_name] = File.read(document.public_filename) This works in most conditions (including .docx, but fails for .xlsx files with the…
3
votes
2 answers

attachment_fu: Don't reload thumbnails

I've got a nice little "photos" class that has attached images. When I go to the page to sort the photos' order, it iterates though each photo, sets the new "sort" value, and saves it. All good so far. Problem is, I've noticed this behavior is…
Matchu
  • 83,922
  • 18
  • 153
  • 160
3
votes
1 answer

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…
Ganesh Shankar
  • 4,826
  • 8
  • 43
  • 56
2
votes
0 answers

Rails : Replace Attachment_fu DB with Paperclip S3

I replaced my attachment_fu with paperclip S3. I am facing problem of transferring my old data which was in database tables to S3 buckets. What would the best solution of doing these. Provide some solution on that.
Sachin R
  • 11,606
  • 10
  • 35
  • 40
2
votes
4 answers

TypeError (Can't convert nil into String) With Attachment_Fu

I'm handling file attachments in my Rails app with Attachment_fu, which provides a public_filename method to retrieve a file's URL. I'm using it on a model called Cover, so if I want to call the URL of an uploaded cover image, in a view I would…
btw
  • 7,006
  • 9
  • 40
  • 40
2
votes
3 answers

Ruby on Rails: Server error with while trying to upload a file using attachment_fu: (can't convert nil into Integer)

I followed a simple example to upload a file (see link to code below). When i add to the upload form the field <%= f.file_field :uploaded_data %>, and click submit button on the form (with or without a a file attachment), i get an error message in…
user663778
  • 381
  • 4
  • 14
2
votes
1 answer

Upload Photo from iPhone to Rails server with attachment_fu

I think I've been able to send a photo from the iPhone to Rails using the Multipart format, but once the photo gets to the Rails server, I can't figure out how to save it correctly. I think the file shows up in the params on the Rails server as…
James Testa
  • 2,901
  • 4
  • 42
  • 60
1
2 3 4 5 6