bootstrap-file-input icon indicating copy to clipboard operation
bootstrap-file-input copied to clipboard

"Required" attribute broken

Open inadarei opened this issue 12 years ago • 2 comments
trafficstars

Very nice plugin, Thanks for creating it.

There one minor problem: HTML5 and Bootstrap allow putting "required" attribute on the control. If user forgets to upload file Bootstrap displays a nice popup error to alert the user. When using your plugin that functionality gets broken.

inadarei avatar Jan 21 '13 00:01 inadarei

Thanks!

I will check into this when I get a chance.

grevory avatar Jan 21 '13 20:01 grevory

Example broken file upload field:

<a class="file-input-wrapper btn undefined">
    Choose File
    <input required type="file" name="pDOSYA" title="Choose File" style="left: -181.625px; top: 21px;">
    <label for="pDOSYA" class="error" style="">Choose File</label>
</a>

hyagli avatar Jun 22 '13 22:06 hyagli