πŸ“ 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:

  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:

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

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

πŸ“– Importing guide Β· πŸ”‘ Credential setup