New File

<% form_for :foto, @foto, :url => { :action => 'new' }, :html => { :multipart => true } do |f| %>


<%= f.file_field :upload %> <%= f.hidden_field :user, :value => @user[:login] %>

<%= submit_tag 'Upload' %> <% end %>