Skip to content

Upload File

Upload a file to the page via file path, URL path, Base64 format.

Element Selector

Select the element and input using the element selector.

Selector Options

Choose the desired options.

Add File Path

You can choose to upload a file in the following formats:

URL

The link to the file on a website.

For example:

  • https://example.com/files/document.pdf
  • https://example.com/words.txt

File path

The path to the file on your computer.

For example:

  • Windows: C:\Users\Public\Documents\testing.docx
  • MacOS: /Users/Josh/Desktop/docs.pdf

Base64

The Base64 format of an image.

For example:

  • data:image/png;Base64,iVBORw0KGgoAAAANSUhEUgAAB4AA...

Practical Example

Here you want to upload a random file from a list of files on your computer to a page.

Attributes

First, you will use the Read File Text node to read a file containing the links to the images you want to upload. You will configure the node as follows to assign the retrieved link to a variable named link.

Attributes

Then, configure the Upload File node as follows to use the link variable containing the image link.

Attributes

After running the node cluster, you will see that the image has been uploaded.

Attributes

Note

The file name and the folder containing the file must not contain spaces or accented characters.