feature "onFileSelected" #918
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?
Hi! I would like to know when it's going to be available this feature in the "master" branch :)
Thanks!
Me too!
Don't know about the feature, but for the moment you can use the change event like this:
<input type="file" ng2FileSelect [uploader]="uploader" (change)="onFileSelected($event)" />
onFileSelected(input){
do stuff with input.target.files[0]
}
this.uploader = new FileUploader({ autoUpload: true });Works too and is already available
use this , you will get all what you need
this.uploader.onAfterAddingFile = (file) => { console.log(file); };
@Vicky443 thanks for that solution! That actually simplified my code substantially from independently using
onFileSelectedandonFileDroppedindependently