From: rabarama Date: 2009-12-10T05:30:06+09:00 Subject: Re: Mysql::Error: Data too long for column > Are you storing session information in the database? If so, one of the > columns (the data column IIRC) may not be large enough. This happens > with postgres. > > Cheers-- > no, session is at the moment in cookies. Searching seems that the problem is db encoding, but I'm not sure how to get everything working. This only happends when i try to store to the db a file in a binary (blob in mysql) field. It works well if i don't upload anything. In SQLite I don't have this problem (same code and environment, same test).