hi,
i want to have one uploader, but 2 forms:
Upload Single Attachment
<%= simple_form_for(FolderAttachment.new) do |form| %> <%= form.error_notification %><%= form.input :folder_id , :as => :hidden , :input_html => { :value => @folder_current.id} if @folder_current %>
Upload Multiple Attachments
<%= simple_form_for(FolderAttachment.new, :html => { :multipart => true } ) do |form| %> <%= form.error_notification %><%= form.input :folder_id , :as => :hidden , :input_html => { :value => @folder_current.id} if @folder_current %>
→ no matter what i do, i always get errors on controller leve, eg: map or others. can an uploader only have 1 mount?
class FolderAttachment < ApplicationRecord
belongs_to :folder
mount_uploaders :singlefile, FolderAttachmentUploader
mount_uploaders :files, FolderAttachmentUploader
end
thx