<div class="field d-none">
  <%= form.label :files %>
  <%= form.file_field :files, disable: true, direct_upload: true, multiple: true, id: "directory_files", hide_label: true %>
  <% directory.files.each do |file| %>
    <% unless file.persisted? %>
      <%= hidden_field_tag "#{directory.model_name.param_key}[files][]", file.signed_id %>
    <% end %>
  <% end %>
</div>

<div class="dropzone field border-dashed" 
  data-accepted-files="audio/*,image/*,video/*,application/*"
  data-behavior="dropzone" 
  data-file-input-id="directory_files" 
  data-existing-files="<%= mock_photos_json(directory.files) %>" 
  data-placeholder="<%= dropzone_placeholder_message_for(directory) %>"
  data-submit-button="#submit_folder"></div>