app/components/avo/fields/file_field/edit_component.html.erb in avo-2.7.1.pre.1 vs app/components/avo/fields/file_field/edit_component.html.erb in avo-2.8.0

- old
+ new

@@ -4,8 +4,13 @@ <%= render Avo::Fields::Common::SingleFileViewerComponent.new resource: @resource, field: @field %> </div> <% end %> <% if @resource.authorization.authorize_action(:upload_attachments?, raise_exception: false) %> - <%= @form.file_field @field.id, disabled: @field.readonly, direct_upload: @field.direct_upload %> + <%= @form.file_field @field.id, + data: @field.get_html(:data, view: view, element: :input), + direct_upload: @field.direct_upload, + disabled: @field.readonly, + style: @field.get_html(:style, view: view, element: :input) + %> <% end %> <% end %>