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’,

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


Bruno R.

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

On a quick search I found this…


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

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