upload problems

Hi all,

when I try to upload a file with 200kb or less, rails does it fine. But when I try a bigger one, I get the following error:

ActiveRecord::StatementInvalid in ConteudoController#enviar_imagem

Mysql::Error: Lost connection to MySQL server during query: INSERT INTO conteudo_imagem (`comentario`, `nome`, `conteudo_id`, `ordem`, `tipo`, `data`) VALUES('', '5.png', 49, 8, 'image/png', x'89504e........

Is there a configuration I should do? What is wrong?

thks

Bruno Reis

I remember reading (a while back) that rails handles small and large files different...

On a quick search I found this....

http://blog.vixiom.com/2006/07/26/rails-stringio-file-upload/

but there is better info... hope this points you in the right direction