Uploading files

Let users upload files to store them on Drive, send them by email and more

With the Upload form field users can upload a single or multiple files as part of your form.

Topics

  • Add an upload field to your form
  • Storing the uploaded files on Google Drive

Prerequisites

  • You already know how to add Ultradox Forms to your flow and deal with basic question types

Goals

  • You will be able to deal with the upload field

Instructions

Create form

To create the form, drag a Form building block from the User Interaction of the sidebar into your document and open the Form dialog by clicking on the bold parts in the title of the newly added form building block.

You can then drag and drop a form field from the sidebar into the form.

 Add an Upload file(s) field from Selections and enter the prompt Upload your CV, the Variable name cv and a help text.

Configure upload

Check if you want to allow the user to upload just a single file or multiple files.

You may also want to restrict the type of file that can be uploaded.

Dealing with a single file

The output variables of the form building block will reflect the configuration of the upload field.

When uploading just a single file, you will find variables representing the uploaded file:

In the OUT section you will find a number of suggested actions that will work with the uploaded file.

If you for example want to store the file on Google Drive, just click on the Drive icon to add a properly configured building block to your flow.

You can then of course adjust the configuration of the new building block, e.g. by adjusting the filename of the stored file etc.

In the same way you could send out an email with the uploaded file attached or you could print the file right away on your printer using Google Cloud Print.

Dealing with multiple files

When allowing users to upload multiple files, the output variables look differently:

We will now see that the variable cv[] contains a list of values.

If we want to store all of the uploaded files on Google Drive we will have to leverage the repeat blocks. Just click on the repeat icon and pick the cv[] variable  to add them to your flow.

 The repeat can now be used to perform actions on each of the uploaded files. We can now see the same suggested actions as if dealing with a single file in the previous example.

 To store each of the files on Google Drive just click on the drive icon to add the properly configured building block to your flow:

Questions and Feedback

If you have any comments on this page, feel free to add suggestions right to the Google document that we are using to create this site.

If you are not yet member of the Ultradox community on Google+, please join now to get updates from our end or to provide feedback, bug reports or discuss with other users.

Last Updated: 05.09.19