How to upload the files to REST API /database in Angular (5/6/7)?

Angular itself providing packages to upload files but to do that you must create the node file with api that will upload file.

Take the file data and create one ng form data, append to this and send it to server.

<div class=”form-group”>
 <labelfor=”file1″>Choose File </label>
 <inputtype=”file1″ id=”file1″multiple>

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *