# how to use attachment\_fu from the console?

**URL:** <https://discuss.rubyonrails.org/t/how-to-use-attachment-fu-from-the-console/20387>\
**Category:** rubyonrails-talk\
**Created:** [November 13, 2007, 6:23pm UTC](https://discuss.rubyonrails.org/t/how-to-use-attachment-fu-from-the-console/20387 "2007-11-13T18:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Aljord](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@Patrick\_Aljord](https://discuss.rubyonrails.org/u/Patrick_Aljord)\
**Post date:** [November 13, 2007, 6:23pm UTC](https://discuss.rubyonrails.org/t/how-to-use-attachment-fu-from-the-console/20387/1 "2007-11-13T18:23:42Z")

</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
