I'm sending email as per example at
https://www.webscript.io/examples/fileattachment but I can't get the email to include all file attachments included in the form.
When I select multiple files on the form, only the first file is delivered with the email.
My form:
<form action="https://legalnotices.webscript.io/submit" method="post" enctype="multipart/form-data">
<input type="text" name="name" />
<input type="file" name="attachments" multiple />
<input type="submit" value="Submit Notice" />
</form>
My script is the same as on the example page with the small exception that I'm calling the file input field 'attachments' rather than 'attachment'.
How do I get all files included in request.files to be passed as attachments in the email?
Thanks, Dan.