File uploads

Use form.taxi to enable file transfer for your forms! The level of file upload support and different online storage amounts depend upon your membership choice. Support for file uploads is already available from our standard plan. Select the membership that suits your needs: Memberships overview

Integration in forms

To make your form ready for data transfer with file uploads, these attributes must be added in the HTML code at the form-tag:

  • enctype="multipart/form-data"
  • accept-charset="UTF-8"

Validation

To allow only files up to the possible file size of 10 MB to be selected for upload, add this hidden field in the HTML code. Note that this field must be in the code before all file fields!

<input type="hidden" name="MAX_FILE_SIZE" value="10485760">

Example form with file fields

The following example HTML code contains 2 upload fields. One for uploading any image file and one for uploading a Word document.

<form action="https://form.taxi/s/FORM_CODE" enctype="multipart/form-data" accept-charset="UTF-8" method="POST">
    <input type="hidden" name="MAX_FILE_SIZE" value="10485760">
    <input type="file" name="Your picture" accept="image/*">
    <input type="file" name="Your document" accept=".doc,.docx">
    <input type="submit" value="Send">
</form>  

As an alternative to multiple upload fields, you can add the multiple attribute to one field to enable the transfer of multiple files. The name of the upload field must end with []. Please note that based on your choice of the membership plan, the maximum number of supported files limit varies!

<input type="file" name="Files[]" multiple>