My product form includes various fields like product name, description, and an array of images.
Product Form
Product Name - Product Description
Product Purity - Product Commodity
Images (Add)
Checkbox 1 - Image 1
Checkbox 2 - Image 2
Checkbox 3 - Image 3.
...
I can successfully save the product name, product description, and other fields in my database, but I am unsure how to upload those images. The images are generated by clicking the add button, and there may be one or multiple images based on requirements. I have created the form using a Form Builder. Below is my code:
Template :
<form class="kt-form kt-form--group-seperator-dashed" [formGroup]="mmgForm">
<!-- Form content here -->
</form>
Ts File :
// TypeScript code here