You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Dropzone component in a form and then submitting the form, the parameter for the file is not submitted to the server, when Drag&Drop was used. It works when picking the file from the dialog.
Tried with and without multiple/accept options.
<%= form_with( url:import_path, builder: Polaris::FormBuilder) do |form| %>
<%= polaris_form_layout do |form_layout| %>
<% form_layout.item do %>
<%= form.polaris_dropzone :import_file,
multiple: false,
accept: 'text/csv',
error_overlay_text: 'File type must be .csv'%>
<% end %>
<% form_layout.item do %>
<%= polaris_button(primary: true, submit: true) { "Upload & Import" } %>
<% end %>
<% end %>
<% end %>
When using the Dropzone component in a form and then submitting the form, the parameter for the file is not submitted to the server, when Drag&Drop was used. It works when picking the file from the dialog.
Tried with and without multiple/accept options.
D&D:
File picked from dialog:
Using:
ruby '3.1.2'
'rails', '~> 7.0.3'
polaris_view_components (0.10.0)
Windows 11 Machine, Chrome Browser
The text was updated successfully, but these errors were encountered: