# Attachment fu plugin image upload

**URL:** <https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605>\
**Category:** Rails\
**Created:** [February 6, 2009, 10:26am UTC](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605 "2009-02-06T10:26:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Post date:** [February 6, 2009, 10:26am UTC](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605/1 "2009-02-06T10:26:29Z")

</div>

Hello Everyone,

Anybody know how to upload multiple images using attachment fu plugin

thanks in advance

---

<div class="post-metadata">

**Author:** ![cyrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Post date:** [February 6, 2009, 11:59am UTC](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605/2 "2009-02-06T11:59:45Z")

</div>

On 06 Feb 2009, at 10:26, Cyrus D. wrote:

> Anybody know how to upload multiple images using attachment fu plugin

attachment\_fu is a model plugin, so it has nothing to do with multiple  
file upload. That said, a simple google search brings up plenty of  
tutorials on how to handle it in views and controller and pass it to  
your attachment\_fu powered model:

[http://www.google.com/search?client=safari&rls=en-us&q=multiple+file+upload+attachment\_fu&ie=UTF-8&oe=UTF-8](http://www.google.com/search?client=safari&rls=en-us&q=multiple+file+upload+attachment_fu&ie=UTF-8&oe=UTF-8)

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![cyrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Post date:** [February 6, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605/3 "2009-02-06T13:58:30Z")

</div>

I tried attachment\_fu and paperclip and I can only recommend  
paperclip… I think it’s easier and more rails-like 🙂  
To your question: This guide looks good:  
[http://www.flex888.com/122/multiple-file-upload-with-ruby-on-rails-acts\_as\_attachment.html](http://www.flex888.com/122/multiple-file-upload-with-ruby-on-rails-acts_as_attachment.html)  
I have in mind that acts\_as\_attachment and attachment\_fu have the same  
API so this should work for attachment\_fu 😉

On Feb 6, 10:26 am, Cyrus D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![cyrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Post date:** [February 6, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605/4 "2009-02-06T14:23:46Z")

</div>

I used both: as far as I know paperclip only permits you to have 1  
attachment per model. attachment\_fu is more flexible about this.  
am I wrong?

---

<div class="post-metadata">

**Author:** ![cyrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Post date:** [February 6, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605/5 "2009-02-06T16:15:07Z")

</div>

On Fri, Feb 6, 2009 at 3:23 PM, Mathieu R. \<  
removed\_email\_address@domain.invalid\> wrote:

> I used both: as far as I know paperclip only permits you to have 1  
> attachment per model. attachment\_fu is more flexible about this.  
> am I wrong?

Paperclip allows more than one attachment per model

Andrew T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)  
[http://www.linkedin.com/in/andrewtimberlake](http://www.linkedin.com/in/andrewtimberlake)

“I have never let my schooling interfere with my education” - Mark Twain

---

<div class="post-metadata">

**Author:** ![cyrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Post date:** [February 6, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605/6 "2009-02-06T17:28:31Z")

</div>

It allows 1 - n ? Can I have a list of attachments associated to the  
model?  
or you have to add each attachment?

On Fri, Feb 6, 2009 at 1:14 PM, Andrew T. \<
