I have to implement/use a file picker in my angular4 application.
I currently use:
<label class="btn btn-primary">
Import
<input type="file"
(change)="import($event)" hidden>
</label>
and my handler is as follows:
public import($event): void {
let files = $event.target.files;
this.scenarioConfig.import(files);
}
what I get is that a FileList and each entry only has the filename and does not
contain fullpath.
Any way to use a file picker that gives me fullpath to the selected file?
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.