# Problems uploading .zip files with attachment\_fu

**URL:** <https://www.ruby-forum.com/t/problems-uploading-zip-files-with-attachment-fu/131213>\
**Category:** Rails\
**Created:** [March 6, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/problems-uploading-zip-files-with-attachment-fu/131213 "2008-03-06T23:44:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [March 6, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/problems-uploading-zip-files-with-attachment-fu/131213/1 "2008-03-06T23:44:15Z")

</div>

I’m using attachment\_fu for uploading all of my files and have done so  
successfully except when I try to upload zip files.

I continuously get this error: “Size is not included in the list”

I implemented this fix: [http://www.railsforum.com/viewtopic.php?id=6307](http://www.railsforum.com/viewtopic.php?id=6307)

but it didn’t work.

Here is my model code:

has\_attachment :content\_type =\> ‘application/zip’,  
:storage =\> :file\_system,  
:path\_prefix =\> ‘…/downloads’,  
:max\_size =\> 11102400.kilobytes,  
:min\_size =\> 2.kilobytes

validates\_as\_attachment
