-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support Required attribute? #422
Comments
It is supported in version 2.0.0. See the demo page |
Could you tell me how to pass the required attribute to generated file input when you're using it on "div" element like that: <div ng-file-select ng-model="myFiles" required>(...)</div> It looks like the required attr is not passed to generated input. |
|
I did and didn't saw anything helpful. Do you have any example of using that with div ng-file-input? |
Demo page has the example. |
I? cant find the example either |
The first form in the demo page has required. https://angular-file-upload.appspot.com/ |
and could it have that same required attribute in the drop zone? |
yes |
I tried and it is not working
|
if you still cannot figure it out create a jsfiddle. |
@danialfarid, Hi! wath this example http://jsfiddle.net/bmsdave/3v8e4h7u/2/ if I select some files, and clear all -> picFile = [] , and require dont work. sorry, for my english =\ |
this error exist if set: multiple="true" of ngf-multiple="true" |
set picFile = null |
@danialfarid, where I must set picFile = null? And thx for fast answer! =) |
If you set |
@danialfarid, i set |
What doesn't work? Provide steps to reproduce and expected/actual result. |
@danialfarid, http://jsfiddle.net/3v8e4h7u/3/
pull request #1833 fix it |
this package support Required attribute?
http://stackoverflow.com/questions/16207202/required-attribute-not-working-with-file-input-in-angular-js
The text was updated successfully, but these errors were encountered: