Decompress doesn't yield binary output

{
“nodes”: [
{
“parameters”: {
“formTitle”: “Upload the zip!”,
“formFields”: {
“values”: [
{
“fieldLabel”: “UPLOAD_THE_ZIP”,
“fieldType”: “file”,
“multipleFiles”: false,
“acceptFileTypes”: “.zip”,
“requiredField”: true
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.formTrigger”,
“typeVersion”: 2.2,
“position”: [
384,
0
],
“id”: “813feb8e-95c6-42f9-abaa-fcab51a4e38b”,
“name”: “On form submission”,
“webhookId”: “6d2b7639-d610-4972-8257-c4653f89f712”
},
{
“parameters”: {
“binaryPropertyName”: “UPLOAD_THE_ZIP”,
“outputPrefix”: “unzipped”
},
“type”: “n8n-nodes-base.compression”,
“typeVersion”: 1.1,
“position”: [
608,
0
],
“id”: “1f6cf322-997b-41cd-82f4-0950ac6c979b”,
“name”: “Compression”,
“alwaysOutputData”: false,
“executeOnce”: false,
“retryOnFail”: false
}
],
“connections”: {
“On form submission”: {
“main”: [
[
{
“node”: “Compression”,
“type”: “main”,
“index”: 0
}
]
]
},
“Compression”: {
“main”: [

]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “9731ae9e22e5227904d4271fb40e56741282d99a95217c4b2fc937cf283875a0”
}
}

Hey @Anon hope all is good. Welcome to the community/

Would you like to share an example of a fuller workflow, or a zip file you would like to decompress?

I just tried and worked fine.

could you provide more context?

Please see edited post featuring full flow and link to zip file in question @moosa @jabbson

I am not sure if this is a mistake or what, but the ZIP file you’ve attached had many pdf and doc documents for NHS. Please see if this wasn’t something you intended to share. Or is it the file you are trying to decompress?

If the file is in fact what you intended to use in the workflow, tried it with you workflow and this is what I see:

As you can see on the attached screenshot: the input is your zip file, the output is a list of binary files extracted from the archive. Looking at the binary property names (unzipped0 - unzipped45) it’s the same number of files as I can see if I decompress the provided zip file manually.

I’m looking at needing a similar workflow.

When the output is (unzipped0 - unzipped45) in this example, what is the best way to process each of the files? The output from decompress is 1 item, not 45. I might also have different logic based on the filename. e.g. unzippped0 might be file.csv which has some logic. unzipped0 in a subsequent execution might be file.pdf which has a different workflow.

I found this video that explains a good approach to dealing with the decompressed output. https://youtu.be/2RAZYNigqOY?si=7IJSFZzc2dj1LHJJ&t=340

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.