nervgh/angular-file-upload

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

Opened this issue · 1 comments

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 commented

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