vendredi 7 avril 2017

How can I get the reference of a file through the HTML's input tag? (Angular 2)

I want to upload an image n the Firebase. But to do that I have to get the file first. How can I get an image of my computer, for instance, through the HTML? I'm trying to do this, but I don't know what's the return of this. Help me guys...

<input type="file" name="image" [(ngModel)]="myImage">




Aucun commentaire:

Enregistrer un commentaire