The file field must be named "uploaded_data", try with that.

Regards.

Franco Catena.

On May 19, 12:48 am, Nerdaniel <[email protected]> wrote:
> Hello everyone,
>
> I'm having problems with :html => { :multipart => true } in my edit
> form. It doesn't returns the image in the parameter, so everything
> fails with this errors:
>
> There were problems with the following fields:
>
>     * Size can't be blank
>     * Size is not included in the list
>     * Content type can't be blank
>     * Content type is not included in the list
>     * Filename can't be blank
>
> A friend of mine said that he had this problem in windows and I am in
> a mac 10.5.6. =/
>
> If I put multipart off it gives the same error. Everything I
> implemented was following attachment_fu tutorials all over the net.
> This is my edit:
>
> = error_messages_for :user, :avatar
>
> - form_for(@user, :url => { :action => 'update' }, :html =>
> { :multipart => true }) do |f|
>   = f.label "avatar"
>   %br
>   = f.file_field :avatar
>   %br
>   %br
>   = f.submit "save image!"
>
> Thx!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to