{ "nodes": [ { "name": "On clicking 'execute'", "type": "n8n-nodes-base.manualTrigger", "position": [ 240, 300 ], "parameters": {}, "typeVersion": 1, "id": "split-files-from-a-zip-archive-0" }, { "name": "Split Up Binary Data", "type": "n8n-nodes-base.function", "position": [ 900, 300 ], "parameters": { "functionCode": "let results = [];\n\nfor (item of items) {\n for (key of Object.keys(item.binary)) {\n results.push({\n json: {\n fileName: item.binary[key].fileName\n },\n binary: {\n data: item.binary[key],\n }\n });\n }\n}\n\nreturn results;" }, "typeVersion": 1, "id": "split-files-from-a-zip-archive-1" }, { "name": "Download Example Data", "type": "n8n-nodes-base.httpRequest", "position": [ 460, 300 ], "parameters": { "url": "https://static.thomasmartens.eu/n8n/three_more_files.zip", "options": {}, "responseFormat": "file" }, "typeVersion": 1, "id": "split-files-from-a-zip-archive-2" }, { "name": "Decompress Example Data", "type": "n8n-nodes-base.compression", "position": [ 680, 300 ], "parameters": {}, "typeVersion": 1, "id": "split-files-from-a-zip-archive-3" } ], "connections": { "Download Example Data": { "main": [ [ { "node": "Decompress Example Data", "type": "main", "index": 0 } ] ] }, "On clicking 'execute'": { "main": [ [ { "node": "Download Example Data", "type": "main", "index": 0 } ] ] }, "Decompress Example Data": { "main": [ [ { "node": "Split Up Binary Data", "type": "main", "index": 0 } ] ] } }, "name": "Split Files from a ZIP Archive", "active": false, "pinData": {} }