Skip to content

Commit f7a0541

Browse files
Fix client-side file type validation
1 parent 6ab4e2f commit f7a0541

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/hackathons/submissions/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
<% end %>
3434
<%= f.input :website, as: :url, hint: website_hint %>
3535

36-
<%= f.input :logo, hint: "This image is placed right above your event's name and description. The logo shouldn't include your event's name.", accept: (accept = ActiveStorage.variable_content_types.join(",")) %>
37-
<%= f.input :banner, hint: "This image is used as the background for your listing card, and shouldn't include the logo you used above. We strongly recommend not including any text on the background, or it might be clipped off and covered by the logo you uploaded above.", accept: %>
36+
<%= f.input :logo, hint: "This image is placed right above your event's name and description. The logo shouldn't include your event's name.", input_html: {accept: (accept = ActiveStorage.join(","))} %>
37+
<%= f.input :banner, hint: "This image is used as the background for your listing card, and shouldn't include the logo you used above. We strongly recommend not including any text on the background, or it might be clipped off and covered by the logo you uploaded above.", input_html: {accept:} %>
3838

3939
<div class="form__inputs" data-controller="form--visibility" data-form--visibility-on-value='["in_person","hybrid"]'>
4040

0 commit comments

Comments
 (0)