I have a good question for a guru...
I have a Rails app (of course) that has a page where the visitor uploads an image file. This image file is then saved as a blob in the MySQL database.
And, this works. But.. it only works when I run the application in development mode on Webrick. When I deploy the app to my production server with Apache2, then it doesn't work. Therein lies my question. What am I doing wrong or not doing?
Clearly the code is correct. When I look at the log files I see the same results, except that the production/Apache2 does not have the image file being passed as blob type parameter in the SQL statement.
So my suspicion is that the Apache2 is not configured correctly to allow the image types. But what to do?
my httpd.conf is as follows...
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
Allow from all
AddHandler fcgid-script .fcgi
DefaultInitEnv RAILS_ENV production
any help is most appreciated.
Thank You Railers!