Skip to content
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

where upload function in demo? #523

Closed
abodacs opened this issue Jan 27, 2015 · 6 comments
Closed

where upload function in demo? #523

abodacs opened this issue Jan 27, 2015 · 6 comments

Comments

@abodacs
Copy link

abodacs commented Jan 27, 2015

ng-file-change="upload(files)" in demo i cannot find it in your demo and i can not use watch.
Thanks

@danialfarid
Copy link
Owner

Actually you are right the demo does not have that function.
So if you don't want to watch you can do this

<div ng-file-select ng-file-chage="upload($files)">upload</div>

and in your controller

$scope.upload = function($files) {
   $upload.upload({...});
}

@abodacs
Copy link
Author

abodacs commented Jan 28, 2015

doesn't work with meand i use https://github.com/formly-js/angular-formly to generate upload div.
Any hint

@danialfarid
Copy link
Owner

Can you create a jsfiddle to show the problem?

@firecentaur
Copy link

I always get $upload is an unkown provider, upon searching, stackechange indicates the $upload has been renamed to FileUploader, however FileUploader.upload complains that upload is an invalid function http://stackoverflow.com/questions/25800833/angularjs-angular-file-upload-unknown-provider-uploadprovider-error

@danialfarid
Copy link
Owner

@firecentaur this is a separate issue.
Also the stackoverflow issue has an answer selected so I guess your issue is resolved.

@danialfarid
Copy link
Owner

fixed in version 3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants