Uploading Files

While collecting submissions on Getform, you might want to collect files too. Getform supports file uploads to your form. The size limit for your files is limited to 25MB per submission.

//this is a sample form to accept file uploads

<form action="https://getform.io/f/{your-endpoint}" method="POST" enctype="multipart/form-data">

    <input type="text" name="name">
    <input type="email" name="email">
    <input type="file" name="file">
    <button type="submit">Send</button>

</form>

1.add enctype=multipart/form-data" into from tag.

2.add input type=“file” name=“file"

You can add more than one file input to send in one submission:

<form action="https://getform.io/f/{your-endpoint}" method="POST" enctype="multipart/form-data">

    <input type="text" name="name">
    <input type="file" name="resume">
    <input type="file" name="photo">
    <input type="file" name="document">
    <button type="submit">Send</button>

</form>

You can also use HTML5 multiple file upload syntax, your form should look like the following:

<form action="https://getform.io/f/{your-endpoint}" method="POST" enctype="multipart/form-data">

    <input type="text" name="name">
    <input type="files[]" name="resume"multiple>
    <button type="submit">Send</button>

</form>

Important Note:

  • To receive your submissions correctly for the texts that belong to language families other than Latin, you should include accept-charset="UTF-8" attribute to your form tag.

Now, you're ready to accept files for your submissions!