Uploading files though forms that are larger then 500mb

Describe the problem/error/question

When i trying to upload videos though the n8n forum that is around 500mbs i get an error that its
Invalid string length

What is the error message (if any)?

Error in handling webhook request POST /form-test/a526c3ee-7d1c-44c7-85ec-0e98dab01588: Workflow Form Error: Workflow could not be started!

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.){
  "nodes": [
    {
      "parameters": {
        "formTitle": "sdf",
        "formFields": {
          "values": [
            {
              "fieldLabel": "MOVIES",
              "fieldType": "file"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.3,
      "position": [
        0,
        0
      ],
      "id": "6b317ae6-1d21-4eb3-91ca-0c998a6b2abf",
      "name": "On form submission",
      "webhookId": "a526c3ee-7d1c-44c7-85ec-0e98dab01588"
    },
    {
      "parameters": {
        "authentication": "serviceAccount",
        "driveId": {
          "__rl": true,
          "value": "My Drive",
          "mode": "list",
          "cachedResultName": "My Drive",
          "cachedResultUrl": "https://drive.google.com/drive/my-drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        208,
        0
      ],
      "id": "4e8276b3-3cc4-4e7c-887b-3a8eb6711f8d",
      "name": "Upload file",
      "credentials": {
        "googleApi": {
          "id": "Uusb9ffgHubG8II4",
          "name": "Google Drive account"
        }
      }
    }
  ],
  "connections": {
    "On form submission": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "e4de650fac78ccb350588828def2b0a305db5ec788ad4731b8663f50ff8017c1"
  }
}

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.117.3
  • Database (default: SQLite): Postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker though coolify
  • Operating system: Oracle linux

What solved it was N8N_DEFAULT_BINARY_DATA_MODE=filesystem

This can close