How to automate file uploads in the cloud

To automate the process of uploading files in the cloud to any website or web application, you can utilize the Upload a file from Google Drive step. This step allows for easy file transfers without the need for programming.

You must run this automation in the cloud to upload files using this step. See here for instructions on using this step to upload from local storage.

# How to upload a file in the cloud using the "Upload a file from Google Drive" step


Assuming you have already added a Go to page step to your automation, use the step finder to add the "Upload a file from Google Drive" step. Then configure the steps as follows.

Design pattern: Upload file from Google Drive
  • 1 Go to page
  • 2 Upload a file from Google Drive
How
  1. Click the "Field Input Field" and select the file field where you wish to upload your file.
  2. Lastly, enter the URL of the file in Google Drive to upload.

# How to upload multiple files in the cloud via the same input field


The "Upload a file from Google Drive" step can also be used in a loop to upload multiple files via a single input field. To achieve this, we use the step in conjunction with the "Loop through data" step. Importantly, we will need to pass the file path from a data source such as a Google Sheet.

Design pattern: Upload from Google Drive to multiple URLs
  • 1 Read data from a Google Sheet
  • 2 Loop through data
    • 2.1 Go to page
    • 2.2 Upload a file from Google Drive
How
  1. First, add your file paths into a data source such as a Google Sheet
  2. Now use a "Read data from a Google Sheet" step to retrieve the file paths
  3. Next insert a "Go to page" step. Load the page with the upload field
  4. Add a "Loop through data" step
  5. Then, add the "Upload a file from Google Drive" step into the loop as a sub-step
  6. Click the "Field Input Field" and select the file field where you wish to upload your file
  7. Finally, In "Google Drive file URL", click "Insert data" and select the file path from the Google Sheet

# How to upload multiple files in the cloud to different web pages


The "Upload a file from Google Drive" step can also be used in a loop to upload files to multiple pages. The pages will need to have the same template and matching fields, for example in a CMS system. To achieve this, we use the step along with the "Loop through data" step, inserting the "Go to page" step inside the loop. Importantly, we will need to pass the URL and file path from a data source such as a Google Sheet.

How
  1. First, add your URLs and file paths into a data source such as a Google Sheet.
  2. Now, use a "Read data from a Google Sheet" step to retrieve the data.
  3. Add a "Loop through data" step.
  4. Inside the loop, insert a "Go to page" step. Click "Insert data" and select the URL from the Google Sheet.
  5. Then, add the "Upload a file from Google Drive" step into the loop as a sub-step.
  6. Click the "Field Input Field" and select the file field where you wish to upload your file.
  7. Finally, In "Google Drive file URL", click "Insert data" and select the file path from the Google Sheet

# Issue when automating file uploads


If the file does not upload, please ensure the filename and path are correct and verify that the file is present in the specified location.