unable to turn off Auto Upload for ng2FileSelect #1130
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm creating a file upload as below in my component.html
<input type="file" ng2FileSelect [uploader]="uploader" #file hidden multiple accept=".zip,.DLRLE,.DLARM" />
and then initializing it in the .ts
public uploader: FileUploader;
this.uploader = new FileUploader({
url: this.configuration.Server() + URL,
autoUpload : false,
disableMultipart: false,
});
however its still sending the file to my controller as soon as i hit open on the file selector. am i setting the autoupload incorrectly?
Hi @paulson-g,
although the option is set correctly, try not to set
autoUploadsincefalseis its default value.It should work as you expect.
If not, check if you trigger some kind of event when you select a file from the selector.