feature "onFileSelected" #918

Open
opened 2017-10-24 08:31:20 +00:00 by albertocule · 5 comments
albertocule commented 2017-10-24 08:31:20 +00:00 (Migrated from github.com)

Hi! I would like to know when it's going to be available this feature in the "master" branch :)

Thanks!

Hi! I would like to know when it's going to be available this feature in the "master" branch :) Thanks!
marvedly commented 2017-11-06 09:26:48 +00:00 (Migrated from github.com)

Me too!

Me too!
whonftw commented 2017-11-08 14:10:22 +00:00 (Migrated from github.com)

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]
}

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] }
avril-verhaeghen commented 2017-11-14 10:23:56 +00:00 (Migrated from github.com)

this.uploader = new FileUploader({ autoUpload: true });

Works too and is already available

`this.uploader = new FileUploader({ autoUpload: true });` Works too and is already available
Vicky443 commented 2017-11-23 03:18:47 +00:00 (Migrated from github.com)

use this , you will get all what you need
this.uploader.onAfterAddingFile = (file) => { console.log(file); };

use this , you will get all what you need **this.uploader.onAfterAddingFile = (file) => { console.log(file); };**
corbfon commented 2018-03-19 19:02:25 +00:00 (Migrated from github.com)

@Vicky443 thanks for that solution! That actually simplified my code substantially from independently using onFileSelected and onFileDropped independently

@Vicky443 thanks for that solution! That actually simplified my code substantially from independently using `onFileSelected` and `onFileDropped` independently
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#918