<%= semantic_form_for [@thema,@attachment], :remote=>true, :html => { :multipart => true, :id => "fileupload" } do |f| %>
Add files... <%= f.file_field :datei, :multiple=>true %> <% f.input :thema %>

<% end %>