# How to use attachment\_fu from the console?

**URL:** <https://www.ruby-forum.com/t/how-to-use-attachment-fu-from-the-console/120100>\
**Category:** Rails\
**Created:** [November 13, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-use-attachment-fu-from-the-console/120100 "2007-11-13T19:24:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [November 13, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-use-attachment-fu-from-the-console/120100/1 "2007-11-13T19:24:28Z")

</div>

Hey all,

I’m trying to use attachment\_fu from the console because I need to  
upload a batch of picture that are locally on the same disk as my app.  
I tried doing that:  
Picture.new(File.open(“pic.jpg”)).save but obviously that’s not the  
way to do it.

Any idea how to do it?

Thanks in advance

Pat
