on-internet
← Community

Multiple File Upload Using Angular 4

Stack Overflow ·

I am facing issue with multiple files upload using Angular 4. Here I am trying to append the multiple files in getFileDetails() but only file is selecting and if I choose another file it is getting replaced with the new file but actual expectation is they need to append each other and using post method I need to pass the json. app.component.html: <div> <h1>{{title}}!</h1> <ng-container> <input type="file" id="file" multiple (change)="getFileDetails($event)"> <button (click)="uploadFiles()">Upload</button> </ng-container> </div app.component.ts import { Component, OnInit } from '@angular/core';

Comments

Sign in or sign up to comment and upvote.

No comments yet.