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

Calling a upload function on button click instead of image upload. #870

Open
phanikumar252 opened this issue Apr 2, 2020 · 1 comment
Open

Comments

@phanikumar252
Copy link

Hi, how to call uploader function from angularJs controller on button click instead of at the time of uploading image. Please help me on this. Thanks

@ygj6
Copy link
Collaborator

ygj6 commented May 23, 2020

You can upload files by calling uploader.uploadItem(item). You can obtain item by calling uploader.getNotUploadedItems(). For example:

	uploader.onAfterAddingFile = function (item) {
		console.log(uploader.getNotUploadedItems ());
		uploader.uploadItem(item);
	}

See Module-API#methods

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

2 participants