Back to Templates

Extract and Upload Files from Zip Archives to Google Drive

Created by

Created by: David Soden || davidsoden

David Soden

Last update

Last update 2 days ago

Categories

Share


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:

  1. User submits a zip file via form
  2. Zip file is temporarily saved to disk (workaround for compression node limitation)
  3. Zip file is read back and decompressed
  4. Split Out node separates each file into individual items
  5. 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

  1. Connect Google Drive: Add your Google Drive OAuth2 credentials to the "Upload to Google Drive" node
  2. Select destination folder: In the Google Drive node, choose which folder to upload files to (default is root)
  3. 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