Having two attachments on a Netlify form

We are using a Netlify form on our individual job pages to capture applicant information and upload their resume. I have now been asked to add an upload for an OPTIONAL cover letter. So the form needs to support two uploads.

Can this be done?

I tried this:
Attach Resume *
<input
hidden
id=“attachment”
type=“file”
name=“attachment”
value={field}
onChange={(e) => {
setFileName(e.target.files[0].name);
}}
/>


Attach Cover Letter

{filename && message !== ‘Email sent successfully!’ && (
{filename}
)}

Send

But I cannot upload two files, only 1.

Thanks for your help :upside_down_face:

NETLIFY SITE NAME: lively-react.netlify.app

Hi, @Jennifer_G. There is a topic which discusses this in great detail here:

There are some solutions posted there as well. If there are questions after reading that topic, please let us know.