- Set multiple attribute in input fields for select multiple images and upload on the server.
<form action="/product-add-img/<%= product._id %>" method="POST"
enctype="multipart/form-data">
<span>Upload more Images:</span><br><br>
<input name="image" multiple type="file" accept=".jpg, .jpeg, .png" required>
<button type="submit">
Upload
</button>
</form>
Tags:
html