%= form_for file_type.new, :remote => true, :html => { :multipart => true, :id => "fileupload" } do |f| %>
<% cache [:file_upload, obj] do %>
<%= bt("add_files") %>
<%= f.hidden_field @obj_class.to_s.demodulize.downcase+"_id", :value => obj.id, name: "#{file_type.to_s.tableize.gsub('mokio/', '').singularize}[#{@obj_class.to_s.demodulize.downcase}_id]" %>
<%= f.file_field :data_file, multiple:true, name: "#{file_type.to_s.tableize.gsub('mokio/', '').singularize}[data_file]" %>
<% end %>
<% end %>