Skip to content

Upload File

Upload a file to a page that allows file uploads.

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, I want to upload a random file from a list of files on my computer to a page.

Attributes

First, I will use the Read File Text node to read a file containing the links to the images I want to upload. I 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 group, I will see that the image has been uploaded.

Attributes