Include uploaded file name in send email block template
I have a form where I have text fields to be completed, and a file field to upload an attachment. When the form is submitted, the data enters in my table and the email is sent. When I receive the email in my inbox, all of the data apart from that of the file field is included. I don't want the attachment to be sent by email, just its name.
I'm using the standard WA block template with some edits.
How do I capture the name of the attachment that's been uploaded and display it in the email that is sent? Also, I am incrementing the name of the new file if one of the same name already exists, so I need to ensure I capture that new, incremented name.
Do I have to add code to the insert page and the email template, or just to the email template?
Thanks.