diff --git a/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/HTTPRequest_node.png b/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/HTTPRequest_node.png new file mode 100644 index 000000000..df9d18d65 Binary files /dev/null and b/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/HTTPRequest_node.png differ diff --git a/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/README.md b/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/README.md new file mode 100644 index 000000000..ceaf58a97 --- /dev/null +++ b/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/README.md @@ -0,0 +1,48 @@ +--- +permalink: /nodes/n8n-nodes-base.writeBinaryFile +--- + +# Write Binary File + +The Write Binary File node is used to write a file to the host machine that runs n8n. + +::: tip 💡 Keep in mind +1. If you are running n8n in Docker, your command will run on the n8n container and not the Docker host. +2. This node will look for files relative to the n8n install path. It is recommended to use absolute file paths to prevent any errors. +::: + +## Node Reference + +1. ***File Name*** field: This field specifies the path to which the file should be written, along with the file name. +2. ***Property Name*** field: Name of the binary property to which to write the data of the read file. + +## Example Usage + +This workflow allows you to write a file to the host machine using the Write Binary File node. You can also find the [workflow](https://n8n.io/workflows/590) on the website. This example usage workflow would use the following nodes. +- [Start](../../core-nodes/Start/README.md) +- [HTTP Request](../../core-nodes/HTTPRequest/README.md) +- [Write Binary File]() + + +The final workflow should look like the following image. + +![A workflow with the Write Binary File node](./workflow.png) + +### 1. Start node + +The start node exists by default when you create a new workflow. + + +### 2. HTTP Request node + +1. Enter the URL of the file in the ***URL*** field. For example, `https://docs.n8n.io/assets/img/n8n-logo.png`. +2. Select the 'File' option from the ***Response Format*** dropdown list. +3. Click on ***Execute Node*** to run the node. + +![Using the HTTP Request node to get an image](./HTTPRequest_node.png) + + +### 3. Write Binary File node + +1. Enter the path to which the file should be written along with the file name in the ***File Name*** field. +2. Click on ***Execute Node*** to run the node. diff --git a/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/workflow.png b/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/workflow.png new file mode 100644 index 000000000..a30ad0b3a Binary files /dev/null and b/docs/nodes/nodes-library/core-nodes/WriteBinaryFile/workflow.png differ