Hi @RicardoE105, just tested. Seems to be working fine for .zip files.
Tried a couple .rar and am needing .gz but these seemed not to work. (dont know if they shall with your code).
Below the example, and attached the file I used sent through postman.
https://drive.google.com/file/d/11RmsjHNHop39nKS9iSPY7DdEZS63hpyT/view?usp=sharing
Should the .gz files work? (u have a name.xls.gz that need to use)
On the other hand, on the file I sent you can see that it doesnt have headers and I am having trouble getting some headers prior to the first line. Any idea on how this might be done?
Also when compressing again, It maked a file for each line, any idea on how to merge to the same 1 file and 1 zip file?
Thanks! and great job with the compress node!
{
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "testfile",
"options": {
"binaryData": true,
"binaryPropertyName": "data"
}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
430,
300
],
"webhookId": "ef7fed05-f51b-49bc-b911-e300302fb4af"
},
{
"parameters": {
"binaryPropertyName": "data0"
},
"name": "Compression1",
"type": "n8n-nodes-base.compression",
"typeVersion": 1,
"position": [
640,
300
]
},
{
"parameters": {
"binaryPropertyName": "file_0",
"options": {
"rawData": true
}
},
"name": "Spreadsheet File",
"type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 1,
"position": [
840,
300
]
},
{
"parameters": {
"mode": "jsonToBinary",
"destinationKey": "modcli",
"options": {}
},
"name": "Move Binary Data",
"type": "n8n-nodes-base.moveBinaryData",
"typeVersion": 1,
"position": [
1040,
300
]
},
{
"parameters": {
"operation": "compress",
"binaryPropertyName": "modcli",
"outputFormat": "zip",
"fileName": "clientes.zip",
"binaryPropertyOutput": "clientes"
},
"name": "Compression",
"type": "n8n-nodes-base.compression",
"typeVersion": 1,
"position": [
1240,
300
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Compression1",
"type": "main",
"index": 0
}
]
]
},
"Compression1": {
"main": [
[
{
"node": "Spreadsheet File",
"type": "main",
"index": 0
}
]
]
},
"Spreadsheet File": {
"main": [
[
{
"node": "Move Binary Data",
"type": "main",
"index": 0
}
]
]
},
"Move Binary Data": {
"main": [
[
{
"node": "Compression",
"type": "main",
"index": 0
}
]
]
}
}
}