-# app/views/buckets/edit.html.slim = form_with model: @bucket do |f| = f.label :files, class: "label d-none" = dropzone_controller_div do - f.object.files.each do |file| = f.hidden_field :files, multiple: true, value: file.signed_id = f.file_field :files, direct_upload: true, multiple: true, 'data-dropzone-target': 'input' .dropzone-msg.dz-message.needsclick.text-gray-600 h3.dropzone-msg-title Drag here to upload or click here to browse span.dropzone-msg-desc.text-sm 2 MB file size maximum. Allowed file types png, jpg. = f.button "Upload", class: 'btn-primary mt-2'