# Re: Page\_Attachments

**URL:** <https://www.ruby-forum.com/t/re-page-attachments/106911>\
**Category:** Radiant CMS\
**Created:** [June 15, 2007, 10:19am UTC](https://www.ruby-forum.com/t/re-page-attachments/106911 "2007-06-15T10:19:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [June 15, 2007, 10:19am UTC](https://www.ruby-forum.com/t/re-page-attachments/106911/1 "2007-06-15T10:19:57Z")

</div>

I am also still having the same problem with Page\_Attachments, I have  
only tried a couple of pdf files which have been ok. It is mostly image  
files that we need to upload. The images are usually over 1mb so it  
doesn’t seem to be caused by the files being very small.

Thanks

Sharon

This e-mail has been scanned for all viruses by MessageLabs.

---

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [June 15, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/re-page-attachments/106911/2 "2007-06-15T15:46:01Z")

</div>

Aha! That would be the problem. I’ll go ahead and make the change,  
but if you want to do it yourself, go to  
vendor/extensions/page\_attachments/app/models/page\_attachment.rb and  
add this option to the has\_attachment line:

:max\_size =\> 10.megabytes # or whatever you want

Then restart your server. It appears the default is 1 megabyte, which  
would explain the issue.

Sean
