-
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
Two different file upload on the same controller #389
Comments
fixed in version 2.0.0 |
Actually going through the old version prior to 2.x. this behaviour doesn't happen and I can have two different methods for ng-file-select for two elements in the same controller and they call the correct method. |
Ok, i'll try to check that asap |
When using the directive twice on a page with two different upload method it doesn't work. for instance the first directive calls uploadPicture($files) and the second one uploadDocument($files).
Actually angular-file-upload only consider the second method for both directive element. This is due to directive scope which is global.
To avoid this behaviour directive must have the "scope : true" parameter. I'll post a pull request.
The text was updated successfully, but these errors were encountered: