Problems uploading files

Hello, i have problem when i upload files to the website, i can't understand it. I use Apache 2 + Ubuntu, and Apache returns Error 500 (captured by the application)

I use attachment and shared-mime-info and i don't understand why don't work, temp files are written with 600, and not 644 :S

Sometimes use /tmp/CGI* other times use /rails_dir/tmp/ attachment_fu :S

I use Apache 2.2 + mod_rails + attachment_fu + shared-mime-info + rails 2.2.2

the production.log is this: http://gist.github.com/241194

When i programming something with uploading, problem is with form. I forget to add multipart tag to form. Are you ok with that?