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
2
votes
3 answers

Attachment_fu issue

I am trying to use attachment_fu + image science on jRuby-1.5.2 and Rails 3. I have followed the attachment_fu docs. However, when I upload the form form the browser, i get an error on validate_as_attachment saying size cannot be blank. This is what…
Dhaval
  • 21
  • 1
2
votes
0 answers

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…
Steven
  • 17,796
  • 13
  • 66
  • 118
2
votes
3 answers

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> when I try and upload a file via the upload form I get around 80 messages like…
trobrock
  • 46,549
  • 11
  • 40
  • 46
2
votes
2 answers

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…
Matt Rogish
  • 24,435
  • 11
  • 76
  • 92
2
votes
2 answers

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…
brahn
  • 12,096
  • 11
  • 39
  • 49
2
votes
2 answers

Extract text from document in memory using docsplit

With the docsplit gem I can extract the text from a PDF or any other file type. For example, with the line: Docsplit.extract_pages('doc.pdf') I can have the text content of a PDF file. I'm currently using Rails, and the PDF is sent through a…
fotanus
  • 19,618
  • 13
  • 77
  • 111
2
votes
3 answers

Is it an issue to create a directory for each file upload, in a web application on linux/unix?

I am doing file-upload for a web-application (running on unix/linux). I'm wondering if there would be a concern if I planned to create a new directory for each file upload? This is the out-of-the-box approach for the Ruby on Rails plugin…
Greg
  • 34,042
  • 79
  • 253
  • 454
2
votes
4 answers

What is involved with changing attachment_fu's storage scheme?

I have a rails application that is using attachment_fu. Currently, it is using :file_system for storage, but I want to change it to :s3, to allow for better scaling as more files get uploaded. What is involved with this? I imagine that if I just…
pkaeding
  • 36,513
  • 30
  • 103
  • 141
1
vote
1 answer

Multiple Image Uploads with rails_admin (Attachment_fu, Carrierwave, etc.)? Any solutions?

I'm looking for a easy way to have multiple attachments on one model using Rails Admin. I've already Paperclip working, but I need multiple images and not just one. Any hints / ideas / links? Thank you very much! Ole
Ole Spaarmann
  • 15,845
  • 27
  • 98
  • 160
1
vote
1 answer

saving files outside the public folder with attachment_fu in ruby on rails

I'm using attachment_fu in a rails application to handle file uploads, and i want to save them in a directory in the root of the application called attachments. however, I cannot seem to make this plugin save a file in any other directory than…
Chris Drappier
  • 5,280
  • 10
  • 40
  • 64
1
vote
1 answer

Rails: attachment_fu plugin, convert PDF uploads to image

Yo, I've got attachment_fu set up on my server, and it works just fine. My goal, however, is to be able to upload PDFs and have them convert to image (then use all the pre-built attachment_fu options like resize and thumb produce the desired…
Matchu
  • 83,922
  • 18
  • 153
  • 160
1
vote
1 answer

Why doesn't my upload from Flash to Rails & attachment_fu work (it has something to do with the content type)?

I am trying to upload a file from a flash widget to my rails application, which uses attachment_fu to handle uplaoded images. I am using flash to upload since it makes it easy to select and upload multiple files. However, I am getting this error…
pkaeding
  • 36,513
  • 30
  • 103
  • 141
1
vote
2 answers

How do I disable Attachment Fu Plugin in Community Engine without removing it?

So here is the situation: The Photo model in Community Engine is using attachment Fu. I, wish to use paperclip instead. Now this works fine until I have to delete an attachment. That's when the attachment Fu is causing the problem. Here is what…
1
vote
4 answers

How do you validate attachment_fu's image width and height?

I want to be able to validate the image is exactly a certain with or a certain height, or if it's square. In the validation block of the model that has_attachment, when I try to access image_size, width, or height, it always comes out as null. I…
Ramon Tayag
  • 15,224
  • 9
  • 43
  • 69
1
vote
1 answer

How can I migrate attachment_fu out of the database?

I'm working on a Rails project that currently receives uploaded files using attachment_fu and stores files in the database. I'd like to move them to use the filesystem. The problem is that there are currently several thousand uploaded files in the…
eqdw
  • 125
  • 7