# Attachement\_fu max\_size problem...mystery...need help please

**URL:** <https://www.ruby-forum.com/t/attachement-fu-max-size-problem-mystery-need-help-please/115173>\
**Category:** Rails\
**Created:** [September 21, 2007, 11:20am UTC](https://www.ruby-forum.com/t/attachement-fu-max-size-problem-mystery-need-help-please/115173 "2007-09-21T11:20:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pacochin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9fc29f/32.png) [@pacochin](https://www.ruby-forum.com/u/pacochin)\
**Post date:** [September 21, 2007, 11:20am UTC](https://www.ruby-forum.com/t/attachement-fu-max-size-problem-mystery-need-help-please/115173/1 "2007-09-21T11:20:12Z")

</div>

Hi All,

Just to share with you, after many hours of hair scratching, 10 cubs  
of coffee and sleepless night, i finally got attachement\_fu creating  
thumbnail for me…

BUT, there is a mysterious problem i encounter.

What i learnt

1. I realize that i must create a parent\_id in the photos table  
according to the instruction, othewise, thumbnail wont get generated.

What I dont understand

1. I dont know why i cant allow a bigger file size to be uploaded.  
Consider below photo.rb model file i got

has\_attachment :content\_type =\> :image,  
:storage =\> :file\_system,  
:processor =\> ‘Rmagick’,  
:path\_prefix =\> ‘public/files’,  
:thumbnails =\> { :thumb =\> [50, 50]},  
:max\_size =\> 3000.kilobytes

validates\_as\_attachment

Now, the max\_size =\> is 3000 kilobytes, meaning 3kb ? even i changed  
it to 30000.kilobytes, it does not allow me to upload file size  
smaller than that.

I got this error…

1 error prohibited this photo from being saved

There were problems with the following fields:

```
* Size is not included in the list

```

The error message is rather misleading, I GUESS its trying to say  
“File Size exists limit”…but i have no idea.

Any suggestion will be good ?
