File upload problem

Hello,

I have an upload controller which uploads file into a mysql database and
it works fine on my local machine where I am using webrick but when I
use it on a live apache server then it gives me the following error:

ActiveRecord::StatementInvalid in #

Mysql::Error: You have an error in your SQL syntax near ‘‘4749463’ at
line 1: INSERT INTO pictures (content_type, name, photo,
user_id) VALUES(‘image/gif’, ‘arrow.gif’,
x’4749463839610a3c68d0208080003’, 1)

I would be really thankful if someone could help me how to resolve this.

Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs