File Attachments
<input type="file" name="attachment" />You will need to add enctype="multipart/form-data" to the Form Element to make the attachment work.
<form action="https://api.web3forms.com/submit" enctype="multipart/form-data" method="POST">
...
<input type="file" name="attachment" />
...
</form>Multiple File Attachments
We support multiple file attachments on the contact form. We process them together and send them to you.
<form action="https://api.web3forms.com/submit" enctype="multipart/form-data" method="POST">
...
<label> Your Resume </label>
<input type="file" name="resume" />
<label> Your Photo </label>
<input type="file" name="photo" />
...
</form>Advanced File Uploader
Our Default HTML5 File uploader works only for single files up to 5 MB only. To upload multiple files or larger attachments, we recommend using our Advanced File Uploader. Please see the guide here
File upload with Javascript
Here's an example code with Javascript
Last updated
Was this helpful?