Form With File Uploads

How to setting up a form that receives file submissions from your static site


To enable form to receive file uploads you need to :

  1. Add enctype="multipart/form-data" to your HTML form tag.
  2. Add input field with type="file" and name="fcbs_attachment" attributes

Here is some code snippet:

Single file upload

<form action="https://api.formcubes.com/reg/v1/s/{Your Form ID}" method="POST" enctype="multipart/form-data">
<label> Attachment : </label>
<input type="file" name="fcbs_attachment"> <!-- use "file" as type and "fcbs_attachment" as name -->
<input type="submit" value="Send">
</form>

Multiple file upload

<form action="https://api.formcubes.com/reg/v1/s/{Your Form ID}" method="POST" enctype="multipart/form-data">
<label> Attachment : </label>
<input type="file" name="fcbs_attachment" multiple>
<input type="submit" value="Send">
</form>

Quota

Currently Formcubes support file upload up to 2 files for each submission with maximum file size of 2 Mb for each files.

Privacy notice

Your files are stored in Amazon S3 with public permissions, that means anyone with links to your files are able to read your files. We try to give your file a link that are hard to guess to make it harder for unwanted people to access your files, but keep in mind that it's not impossible for unwanted people to access your files.

So make sure use file uploads feature to stores files containing non sensitive information only.

Try free for 7 days

Start collecting submissions with a free 7-day trial.
No credit card required.