Hi all,
I downloaded and installed attachment_fu, also i followed mike clark’s
tutorial from here http://www.clarkware.com/cgi/blosxom/2007/02/24
but when i tried to upload a file, there are these error msgs:
5 errors prohibited this photo from being saved
There were problems with the following fields:
* Content type is not included in the list
* Content type can't be blank
* Size is not included in the list
* Size can't be blank
* Filename can't be blank
actually, this has been mentioned before, but i didn’t see any
solution.
here’s my new.rhtml:
<%= error_messages_for :photo %>
<% form_for(:photo, :url
=>{:controller=>“photo”, :action=>“create”} , :html => { :multipart =>
true }) do |f| -%>
Upload A Photo: <%= f.file_field :uploaded_data %>
<%= submit_tag 'Create' %>
<% end -%>and here’s the ACTUAL html file it returns:
Upload A Photo:
the “name” is actually “photo[uploaded_data]” but not upload_data, how
do i fix this?
thanks.