grevory / bootstrap-file-input

Standardizes the file input field to look like a Bootstrap button in all browsers
Other
179 stars 63 forks source link

"Required" attribute broken #6

Open inadarei opened 11 years ago

inadarei commented 11 years ago

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.

grevory commented 11 years ago

Thanks!

I will check into this when I get a chance.

hyagli commented 11 years ago

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>