π Extract and upload files from zip archives to Google Drive
β‘ 420 views Β· π File Management
Description
Extract and Upload Files from Zip to Google Drive
How it works
This workflow automatically extracts all files from an uploaded zip archive and uploads each file individually to Google Drive.
Flow:
- User submits a zip file via form
- Zip file is temporarily saved to disk (workaround for compression node limitation)
- Zip file is read back and decompressed
- Split Out node separates each file into individual items
- Each file is uploaded to Google Drive with its original filename
Key features:
- Handles zip files with any number of files dynamically
- Preserves original filenames from inside the zip
- No hardcoded file counts - works with 1 or 100 files
Set up steps
- Connect Google Drive: Add your Google Drive OAuth2 credentials to the βUpload to Google Driveβ node
- Select destination folder: In the Google Drive node, choose which folder to upload files to (default is root)
- Update temp path (optional): Change the temporary file path in βRead/Write Files from Diskβ node if needed (default:
c:/temp_n8n.zip)
Requirements
- Google Drive account and OAuth2 credentials
- Write access to local filesystem for temporary zip storage
Tags
automation, file processing, google drive, zip extraction, file upload
π Nodes Used
Google Drive, n8n Form Trigger, Read/Write Files from Disk
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File