bullet-train-pro / bullet_train-action_models

Other
4 stars 1 forks source link

Allow accept value to be set #24

Closed scottharvey closed 1 year ago

scottharvey commented 1 year ago

This allows you to pass in an accept value to the fields partial so you can specify the file types to be accepted by the file selector.

<%= render 'shared/actions/imports/fields', accept: "text/csv" %>

Screen Shot 2022-12-01 at 16 36 50

I'm not sure if there's a better way to do this. 🤔