> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyflow.space/llms.txt
> Use this file to discover all available pages before exploring further.

# Write ZIP File

### **Overview:**

The `Write Zip File` block enables users to create a zip file containing multiple files with specific names and contents. This block supports various file types, making it ideal for efficient file organization and sharing.

> [!TIP]
>
> **Supported file types include** .pdf, .csv, .txt, and .md inside the zip
> files.

***

### Inputs & Outputs

| I/O | Feature | Type | Simple Explanation |
| - | - | - | - |
| input | `zip_file_name` | file | The designated name you wish to assign to the zip file being created. |
| input | `file_type` | selector | The type of files included in the zip. Supported options are .pdf, .json, .csv, .txt, .html, and .docx. |
| input | `file_names` | string\[] | An array of names for the individual files that will be packed into the zip file. |
| input | `file_contents` | string\[] | An array containing content strings corresponding to each of the specified filenames within the zip. |
| output | `zip_file_name` | string   | The name of the created zip file. |

***

### Use Cases

Consider how this block can enhance efficiency in practical applications:

* **Document Compilation:** When preparing various documents for an event or distribution (like reports or presentations), this block simplifies packaging them into a single downloadable archive.

* **Backup Creation:** It is beneficial for generating backups by consolidating multiple important documents into one secure storage location.

* **Data Compression:** If you're working with numerous text-based datasets or log files and need to save space on your system or server, compressing them together in a single zipped format is highly effective.

* **File Transfer:** In situations where you need to send several documents over email or through network transfer quickly, creating a compact zip archive speeds up this process significantly.

* **Batch Processing:** For any analysis tasks requiring grouped data inputs—like statistical analysis from multiple CSVs—this tool helps streamline workflows by organizing everything neatly within one accessible package.

In summary, whenever there’s a necessity to combine related files efficiently into one accessible entity while providing ease of transfer/storage capabilities, look no further than the `Write Zip File` block!


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.