<% attachments = Array(field.many? ? field.attachments : field.data) removable = local_assigns.fetch(:removable, false) %>
<% attachments.each do |attachment| %>
<%= render partial: 'fields/active_storage/drop_js/dropjs_list_edit', locals: { field: field, attachment: attachment, removable: removable, image_size: field.show_preview_size }%>
SEO: <%= alt_method(attachment) %>
full name : <%= attachment.filename %> |
<%= attachment.byte_size.fdiv(1000).round(1) %> KB
<% end %>