Upload every file in a Google Drive folder to a website
How to upload every file in a Google Drive folder to a website: install the Chrome extension, click Build from description, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.
Here is how the automation works. To upload every file in a Google Drive folder, scrape the folder page for each file's thumbnail address, cut the file ID out of it with two Split by character steps, build the file's link in a loop, and pass that link to the Upload a file from Google Drive step. The upload step takes one file link at a time, and this is how a folder link becomes those file links without any code.
Build the Google Drive folder upload from a description
Describe it and click the button: the agent builds and tests the uploader in your Chrome extension. The automation's browser is not signed in to Google, so share the folder as Anyone with the link can view, or turn on store cookies and sign in to Google once in the automation's browser.
- Open my Drive folder and scrape every thumbnail
- Cut the file ID out of each address
- Build each file link and upload it to the page
You need the folder link, in the form https://drive.google.com/drive/folders/<folder ID>, a Google account connected to axiom.ai that can open the files, since the upload step fetches each file through it, and the page you upload to, with a standard file field on it.
Build the Google Drive folder upload step by step
The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.
- 1.0
Go to pageURL: the Drive folder link
- 2.0
Get data from bot's current pageSelect: the custom selectordiv[role="gridcell"] imgwith the column's data type imageMax results: at least the number of files in the folder
- 3.0
Split by characterDATA:[scrape-data]Character:drive-usercontent/
- 4.0
Split by characterDATA: the output of the first splitCharacter:=
- 5.0
Loop through data- repeats for every row in the output of the second split
- 5.1
Go to pageURL: the page you upload to
- 5.2
Enter custom dataCustom data:https://drive.google.com/file/d/followed by the ID column of the current row and/view
- 5.3
Upload a file from Google DriveFile Input Field: the page's file fieldGoogle Drive file URL:[custom-data]
- 5.4
Click elementSelect: the page's Submit button
Common questions about the Google Drive folder upload
Why does the Google Drive folder scrape return nothing?
The automation is probably on Google's sign-in page instead of the folder. Share the folder as Anyone with the link can view, or turn on store cookies and sign in to Google once in the automation's browser.
Why are some files from the Google Drive folder missing?
Google Drive only renders the files on screen. For a large folder, scroll to the bottom before scraping, or split the files across smaller folders.
Why does the Google Drive upload fail with a permission error?
The Google account connected to axiom.ai cannot open the file. Share the folder with that account. When a run fails, hand it to the agent and it repairs the step.
Why does the Google Drive file ID have extra text on it?
The loop is reading the wrong column from the second Split by character step. Run that step and read its preview: the ID column holds only the ID, such as 1jKPChCUPNLkQ1AaEtx-VRbwbvYWY7Cnb. A link that does not open in a browser signed in to Google has the wrong ID in it.
Can I upload every file in a Google Drive folder to a website without code?
Yes. The automation is built from the three lines above, with no code: the two Split by character steps do the work a script would, and the upload step takes the link they build.
Can I run the Google Drive folder upload on a schedule?
Yes. Save the automation and set a schedule. Each run scrapes the folder again and uploads every file it finds there, so move the files already uploaded out of the folder, or keep a folder per run.
Can I upload files from my computer instead of Google Drive?
Yes. On the desktop app, the Upload a file step takes a file from your machine. See automate uploading files.
Where do I get help?
Get in touch with support, or ask in the axiom.ai community.
Related guides
Upload files to a website from a list in a Google Sheet
- Read the file paths from my Google Sheet
- Open the upload page on my site
- Upload each file into the file field
- Wait for the upload to finish before the next
Bulk download files from a website to a folder
- Go to the page I give you
- Download every PDF on it
- Save them in my Downloads folder
Automate Instagram posts from a Google Sheet
- Read the posts from my Instagram posts sheet
- Open Instagram and start a new post
- Upload the image and add the caption from the row
- Click Share and delete the row