# Browsing Image on Apache in rails App

**URL:** <https://www.ruby-forum.com/t/browsing-image-on-apache-in-rails-app/195482>\
**Category:** Rails\
**Created:** [September 23, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/browsing-image-on-apache-in-rails-app/195482 "2010-09-23T18:42:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabhpurnaye](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Post date:** [September 23, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/browsing-image-on-apache-in-rails-app/195482/1 "2010-09-23T18:42:28Z")

</div>

Hi All,

My rails application is running on Apache server with phusion\_passenger  
gem. For testing purpose I used both attachment\_fu and paperclip to  
upload image in that application. There are two different methods, one  
for image uploading using attachment\_fu and another for paperclip.

When the application starts in development mode, everything works as  
expected but when it comes to production mode after browsing an image  
and hit upload it crashes and throws “500 Internal Server Error”.

First I thought that error was occuring due to plugins but i commented  
the code in both of the methods and had written a single redirect\_to  
line in them but still the application is throwing the same error.

Both of the plugins are working fine upto image size 7.6kb but error is  
shown if image size \> 7.6kb. Image validations are upto 100 kb image.

Please guide me.

Thanks  
Saurabh
