Overview
This node enables interaction with a WebDAV server using NTLM authentication. Specifically, for the File - Write operation, it allows users to write binary data to a specified file path on the WebDAV storage. This is useful in scenarios where you need to programmatically upload or update files on a remote WebDAV server, such as backing up documents, syncing files from other systems, or automating content updates.
For example, you could use this node to:
- Upload an image or document stored in n8n’s binary data to a WebDAV folder.
- Update configuration files on a remote server automatically after processing them in a workflow.
Properties
| Name | Meaning |
|---|---|
| Path | The full path to the file on the WebDAV server where the binary data will be written. |
| BinaryFieldName | The name of the binary data field from the input item that contains the file content. |
Output
The node outputs a JSON array where each element corresponds to the result of the file operation for each input item. The exact structure depends on the underlying WebDAV client response but generally includes metadata about the written file (e.g., confirmation of success, file path).
If the node supports binary data output, it would typically mean the node can pass along the binary data unchanged or provide metadata about the uploaded file. However, based on the provided code and properties, the main output is JSON confirming the write operation.
Dependencies
- Requires a WebDAV server accessible via NTLM authentication.
- Needs an API key credential configured in n8n for authenticating with the WebDAV server.
- Uses an internal WebDAV client helper function to perform operations.
- No additional external dependencies beyond the WebDAV server and credentials.
Troubleshooting
Common issues:
- Incorrect file path leading to "file not found" or permission errors.
- Authentication failures due to invalid or missing credentials.
- Network connectivity problems preventing access to the WebDAV server.
Error messages:
"Unsupported resource": Occurs if the resource parameter is set to something other than "file" or "folder". Ensure the resource is correctly set to "file".- Errors related to file operations may indicate permission issues or invalid paths. Verify the path and user permissions on the WebDAV server.
- Authentication errors suggest checking the API key or NTLM credentials setup.