# Problems with upload using attachment\_fu

**URL:** <https://www.ruby-forum.com/t/problems-with-upload-using-attachment-fu/168294>\
**Category:** Rails\
**Created:** [May 19, 2009, 9:18am UTC](https://www.ruby-forum.com/t/problems-with-upload-using-attachment-fu/168294 "2009-05-19T09:18:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nerdaniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@Nerdaniel](https://www.ruby-forum.com/u/Nerdaniel)\
**Post date:** [May 19, 2009, 9:18am UTC](https://www.ruby-forum.com/t/problems-with-upload-using-attachment-fu/168294/1 "2009-05-19T09:18:02Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Nerdaniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@Nerdaniel](https://www.ruby-forum.com/u/Nerdaniel)\
**Post date:** [May 19, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/problems-with-upload-using-attachment-fu/168294/2 "2009-05-19T13:20:23Z")

</div>

The file field must be named “uploaded\_data”, try with that.

Regards.

Franco C…

---

<div class="post-metadata">

**Author:** ![Nerdaniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@Nerdaniel](https://www.ruby-forum.com/u/Nerdaniel)\
**Post date:** [May 19, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/problems-with-upload-using-attachment-fu/168294/3 "2009-05-19T15:59:24Z")

</div>

I tryed and still the same. =/
