Upload files from your computer
To upload files from your local computer, use the Upload a file step. This step requires running the automation in the axiom.ai desktop app. To upload from Google Drive in the cloud instead, see upload files from Google Drive.
Upload a single file
Add a Go to page step that loads the page with the upload field, then add Upload a file below it.
- Open the step finder and add Upload a file.
- Click
File input fieldand select the file field on the page. - Set
File path. Click Insert data to use a path from earlier steps, or click Click to select to pick a file manually.
Upload multiple files to the same field
To upload several files to a single input field, store the file paths in a Google Sheet and loop through them.
- Add a Read data from a Google Sheet step pointing at a sheet of file paths.
- 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 sub-step.
- Click
File input fieldand select the upload field on the page. - Click Insert data in
File pathand pick the column with the file paths.
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 path.
- 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 sub-step.
- Click
File input fieldand select the upload field. - Click Insert data in
File pathand pick the file path column.
Upload local files with the Google Drive step
The Upload a file from Google Drive step can also upload from a local folder when running in the desktop app. This is useful when you want a single step that works in both cloud and desktop modes.
- Add a Go to page step that loads the page with the upload field.
- Open the step finder and add Upload a file from Google Drive.
- Click
File input fieldand select the upload field. - Set
Google Drive file URLto the file URL. - Toggle
Local folderon and enter a local folder path.
Warning: Don't use this configuration when running in the cloud. The
Local foldersetting only works in the desktop app.
Troubleshooting
If the file doesn't upload, check that the filename and path are correct, the file is present at that location, and your local user has read access to the folder.
Note: The Upload a file step only runs in the desktop app. To upload in the cloud, use the Upload a file from Google Drive step.