Upload files from Google Drive
To upload files from Google Drive in a cloud automation, use the Upload a file from Google Drive step. This step requires running the automation in the cloud. To upload from local storage instead, see upload files from your computer.
Upload a single file
Add a Go to page step that loads the page with the upload field, then add Upload a file from Google Drive below it.
- Open the step finder and add Upload a file from Google Drive.
- Click
File input fieldand select the file field on the page. - Set
Google Drive file URLto the URL of the file in Google Drive.
Upload multiple files to the same field
To upload several files to a single input field, store the file URLs in a Google Sheet and loop through them.
- Add a Read data from a Google Sheet step pointing at a sheet of file URLs.
- Add a Go to page step that loads the page with the upload field.
- Add a Loop through data step using the sheet data.
- Inside the loop, add an Upload a file from Google Drive sub-step.
- Click
File input fieldand select the file field on the page. - Click Insert data in
Google Drive file URLand pick the column with the file URLs.
Upload files to multiple pages
To upload files to a series of pages that share the same template (for example, product pages in a CMS), loop through both URLs and file paths.
- Add a Google Sheet with one row per page, containing the page URL and the file URL.
- Add a Read data from a Google Sheet step pointing at the sheet.
- Add a Loop through data step using the sheet data.
- Inside the loop, add a Go to page step. Click Insert data and pick the URL column.
- Add an Upload a file from Google Drive sub-step.
- Click
File input fieldand select the upload field. - Click Insert data in
Google Drive file URLand pick the file URL column.
Troubleshooting
If the file doesn't upload, check that the filename and Google Drive URL are correct, and that the file is present at the specified location.