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
Can you add support for a new attribute called 'validate' or something like that where you can pass a value or values separated with commas. This way if the file doesn't have that extension it will print a error below the button?
I use your plugin all the time, thank you, unfortunately Ruby when you create the field the validation is not working right, it passes the error message to the label right after the button which looks like the button grew in height.
The text was updated successfully, but these errors were encountered:
The value for what? the attribute? I was thinking that would be whatever the user wants to pass in, I was thinking something along these lines:
<input type="file" title="Upload File" class="btn-link" 'validate="jpg, png, gif" />
Notice that class is not mention in the doc but you do support it, which is cool, I found it by reading the code.
It would be nice is the validate attr throws a error to a label after the button, not the one inside of it. Like this.
Can you add support for a new attribute called 'validate' or something like that where you can pass a value or values separated with commas. This way if the file doesn't have that extension it will print a error below the button?
I use your plugin all the time, thank you, unfortunately Ruby when you create the field the validation is not working right, it passes the error message to the label right after the button which looks like the button grew in height.
The text was updated successfully, but these errors were encountered: