Results 1 to 6 of 6
  1. #1
    unknown888 is offline Member
    Join Date
    Mar 2008
    Posts
    56

    Default Paperclip vs Attachment_fu vs MySQL

    Has anyone done image uploading in Rails. How did you do that?. Did you use any plugins like PaperClip, attachment_fu?.

    I have found that those plugins are limited in the sense that all of them creates separate folder structure for images. My user base is more than 50,000 and its becoming a nightmare to have that many folders.

    How did you get around those limitations?. Do you think its wise to store images in MySQL db?

  2. #2
    NickJ is offline Chief Technical Officer(eUKhost.com)
    Join Date
    Jun 2007
    Posts
    313

    Default

    Hello,

    You can refer following URLs for more information on it.

    Image cropping and Upload - Rails Forum - Ruby on Rails Help and Discussion Forum
    Ruby on Rails guides

    Regards,
    Nick J.

  3. #3
    jennifer is offline Moderator (eUKhost.com)
    Join Date
    Mar 2009
    Posts
    402

    Default

    Both are equally good plugins. If you're just looking for a simple tool Paperclip is good for you.

  4. #4
    unknown888 is offline Member
    Join Date
    Mar 2008
    Posts
    56

    Default

    Hi Jenni

    Paperclip is good but for every record it creates a directory with 3 sub directories (thumb, medium etc). Its a real nightmare if you have a reasonably busy site with 50,000 records. Certainly a NO NO. Besides, it just leaves those directories without removing when you delete a record.

    I stumbled upon another fantastic plugin called <a href="http://github.com/Squeegy/fleximage/tree/master">Fleximage</a>. It is a plugin that can be used with the above situation.

    Upload works OK, deleting works OK, but rendering seem to have problem that it is not taking the :image_directory values. I am just stuck here. Have you used it before?. Any ideas/

    I am developing a Craigslist clone that I am planning to release to Open source community. You can have glimpse of it at aigss dot classifieds dot org dot in ( not much ads in there but still worth looking ).

    Any help to crack this problem is a great help for me.
    Last edited by unknown888; 15-03-2009 at 14:24. Reason: more info

  5. #5
    unknown888 is offline Member
    Join Date
    Mar 2008
    Posts
    56

    Default

    guys, ignore my request. Paperclip itself has a provision to specify a single directory in which all images can be stored and retrieved.

  6. #6
    jennifer is offline Moderator (eUKhost.com)
    Join Date
    Mar 2009
    Posts
    402

    Default

    Great! You may also want to search google lots of tutorials available for Paperclip.

    How was your experience with Fleximage though?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •