AutomationFlowsWeb Scraping › Upload & Rename Videos to Google Drive via Apps Script From URL

Upload & Rename Videos to Google Drive via Apps Script From URL

ByJoseph @mjomba on n8n.io

This lightweight Google Apps Script acts as a server endpoint that receives a file URL (from ), downloads the file, uploads it to your specified Google Drive folder, and responds with the file’s metadata (like Drive file ID and URL). This is useful for large video/audio files…

Event trigger★☆☆☆☆ complexity3 nodesGoogle DriveHTTP Request
Web Scraping Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆ Added:

This workflow corresponds to n8n.io template #3815 — we link there as the canonical source.

This workflow follows the Google Drive → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "wGv0NPBA0QLp4rQ6",
  "name": "Upload video to drive via google script",
  "tags": [],
  "nodes": [
    {
      "id": "b89e494d-f85d-4ad5-b0ba-5699f59a58d5",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -300,
        -40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "061597f1-d57d-4733-bc9f-3a3070bd5e95",
      "name": "Rename Uploaded Video",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        180,
        -40
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "url",
          "value": "={{ $json.driveUrl }}"
        },
        "options": {},
        "operation": "update",
        "newUpdatedFileName": "Music Video 1"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "7e8ff194-fdb7-43e4-afde-bba466ac9dd3",
      "name": "Send URL to GDrive Script and Upload",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -60,
        -40
      ],
      "parameters": {
        "url": "\"your_google_script_web_app_url\"",
        "method": "POST",
        "options": {},
        "jsonBody": "{\n  \"videoUrl\": \"https://example.com/path/to/your.mp4\",\n  \"secret\": \"your-strong-secret-here\"\n}",
        "sendBody": true,
        "specifyBody": "json"
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b554bac3-27d2-498a-9e5a-b98cde9ea593",
  "connections": {
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Send URL to GDrive Script and Upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send URL to GDrive Script and Upload": {
      "main": [
        [
          {
            "node": "Rename Uploaded Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This lightweight Google Apps Script acts as a server endpoint that receives a file URL (from ), downloads the file, uploads it to your specified Google Drive folder, and responds with the file’s metadata (like Drive file ID and URL). This is useful for large video/audio files…

Source: https://n8n.io/workflows/3815/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

For developers and organizations that need to protect PDF files with the password.

Read Write File, HTTP Request, Google Drive
Web Scraping

This automation organizes your n8n workflows files into categorizes (Active, Template, Done, Archived) and uploads them directly to a categorized Google Drive folders. It is designed to help users man

Google Drive, HTTP Request, Time Saved
Web Scraping

This automation organizes and consolidates your n8n workflows into categorized JSON files (Active, Template, Done, Archived) and uploads them directly to a Google Drive folder. It is designed to help

Google Drive, Time Saved, HTTP Request
Web Scraping

The Sora 2 API allows seamless generation of CGI ads, turning text prompts into stunning videos. This workflow automates the entire process from video generation to upload, notification, and file shar

Form Trigger, HTTP Request, Email Send +1
Web Scraping

Formtrigger Workflow. Uses formTrigger, googleDrive, httpRequest, stopAndError. Event-driven trigger; 28 nodes.

Form Trigger, Google Drive, HTTP Request +1