Building2 Min.

How to use the file upload block

Learn everything you need to know to use the file upload block in your forms.


When to use

Use the file upload block to let your respondents upload a file or image to their responses.

Screenshot of a file upload block in Tripetto
Demonstration of a file upload block.

How to use

Add a new block to your form and then select the question type File upload. You can now customize this block to your needs with the following features.

Basic features

Each question block has basic features to present the block the way you need, for example Name, Description and Help text. And most of the question blocks have common options, like the Required option.

More information about these basic features can be found in the help article about our form builder.

Additional features

On top of those basic features, the file upload block has the following advanced options:

  • File size

    By enabling the File size feature, you can determine the maximum file size (in Mb) that respondents can upload.

  • File type

    By enabling the File type feature, you can determine what file type(s) respondents can select. You can supply multiple file types, separated with a comma (,). Make sure you start each file type with the dot (for example .pdf).

Screenshot of the form builder in Tripetto
Advanced settings of the file upload block.

Logic

Logic is important to make your forms smart and conversational. The file upload block can work with the following branch conditions to help you with that:

Block conditions

  • File uploaded;
  • No file uploaded.

Evaluate conditions

  • Value matches your filter;
  • Value does not match your filter;
  • Value contains your filter;
  • Value does not contain your filter;
  • Value starts with your filter;
  • Value ends with your filter;
  • Value is empty;
  • Value is not empty.

Filters

When we mention your filter above, there are some different filters that you can use to make the right comparison:

  • Text - Compare with a fixed text that you enter;
  • Value - Compare with another block value entered in the form by a respondent (more info).

Calculations

You can use the calculator block to perform calculations with given answers. The file upload block supports the following calculation operations:

  • Compare - Compare a file name and output a value based on the result of the comparison;
  • Character count - Count the number of characters in a file name;
  • Word count - Count the number of words in a file name;
  • Line count - Count the number of lines in a file name;
  • Count occurrences - Count the number of occurrences of a certain text, character or regular expression in a file name;
  • Convert to number - Convert a file name to a number value.

Discover our form blocks

How to use the...
In this article

    Help us improve