# Attachment fu on windows

**URL:** <https://www.ruby-forum.com/t/attachment-fu-on-windows/110056>\
**Category:** Rails\
**Created:** [July 22, 2007, 6:56am UTC](https://www.ruby-forum.com/t/attachment-fu-on-windows/110056 "2007-07-22T06:56:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianspaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Post date:** [July 22, 2007, 6:56am UTC](https://www.ruby-forum.com/t/attachment-fu-on-windows/110056/1 "2007-07-22T06:56:36Z")

</div>

I’ve tried and tried. I couldn’t get freeimage installed. I got  
mini\_magick installed, but everytime I try Mike C.'s tutorial, I  
get the error ‘Size is not in the list’. I found some people fixed  
this by putting a sleep statement in their controller, but this didn’t  
work for me. Any help out there?

---

<div class="post-metadata">

**Author:** ![brianspaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Post date:** [July 24, 2007, 3:28am UTC](https://www.ruby-forum.com/t/attachment-fu-on-windows/110056/2 "2007-07-24T03:28:03Z")

</div>

Hey - I just ran into this problem last week. I spent a few hours  
trying to resolve it, but was unsuccesful in finding what the root  
problem was. So - I took out the validation of the size attribute  
from the attachment\_fu.rb file. Line #344 has this line:

```
      [:size, :content_type].each do |attr_name|

```

Remove the :size and you’ll be OK for windows. Again, that doesn’t  
answer the root problem, but it will enable you to keep going.

Regards,  
Dave  
[http://www.stevensonsoftware.com](http://www.stevensonsoftware.com) - affordable VPS Hosting  
[http://www.gotossh.com](http://www.gotossh.com) - web based SSH

On Jul 21, 10:55 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![brianspaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Post date:** [July 24, 2007, 5:00am UTC](https://www.ruby-forum.com/t/attachment-fu-on-windows/110056/3 "2007-07-24T05:00:48Z")

</div>

specifying the size by range solves the problem in windows:  
:size =\> 0.kilobytes…500.kilobytes

---

<div class="post-metadata">

**Author:** ![brianspaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Post date:** [July 25, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/attachment-fu-on-windows/110056/4 "2007-07-25T18:48:51Z")

</div>

This fixed my problem.  
[http://tinyurl.com/2de4ts](http://tinyurl.com/2de4ts)

On 7/22/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve tried and tried. I couldn’t get freeimage installed. I got  
> mini\_magick installed, but everytime I try Mike C.'s tutorial, I  
> get the error ‘Size is not in the list’. I found some people fixed  
> this by putting a sleep statement in their controller, but this didn’t  
> work for me. Any help out there?
> 
> >

–  
Ramon T.
