diff --git a/docs/nodes/nodes-library/nodes/Nextcloud/HTTPRequest_node.png b/docs/nodes/nodes-library/nodes/Nextcloud/HTTPRequest_node.png new file mode 100644 index 000000000..5413a1e85 Binary files /dev/null and b/docs/nodes/nodes-library/nodes/Nextcloud/HTTPRequest_node.png differ diff --git a/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud1_node.png b/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud1_node.png new file mode 100644 index 000000000..cc31076bb Binary files /dev/null and b/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud1_node.png differ diff --git a/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud2_node.png b/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud2_node.png new file mode 100644 index 000000000..045f83a81 Binary files /dev/null and b/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud2_node.png differ diff --git a/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud_node.png b/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud_node.png new file mode 100644 index 000000000..720c4ff36 Binary files /dev/null and b/docs/nodes/nodes-library/nodes/Nextcloud/Nextcloud_node.png differ diff --git a/docs/nodes/nodes-library/nodes/Nextcloud/README.md b/docs/nodes/nodes-library/nodes/Nextcloud/README.md index 5db850bd5..232775312 100644 --- a/docs/nodes/nodes-library/nodes/Nextcloud/README.md +++ b/docs/nodes/nodes-library/nodes/Nextcloud/README.md @@ -4,7 +4,7 @@ permalink: /nodes/n8n-nodes-base.nextCloud # Nextcloud -[Nextcloud](https://nextcloud.com/) is a free and open source suite of client-server software for creating and using file hosting services. +[Nextcloud](https://nextcloud.com/) is a free and open-source suite of client-server software for creating and using file hosting services. ::: tip 🔑 Credentials You can find authentication information for this node [here](../../../credentials/Nextcloud/README.md). @@ -27,9 +27,10 @@ You can find authentication information for this node [here](../../../credential ## Example Usage -This workflow allows you to create a folder in Nextcloud. You can also find the [workflow](https://n8n.io/workflows/564) on the website. This example usage workflow would use the following two nodes. +This workflow allows you to create a folder in Nextcloud, upload a file into that folder, and list the contents of the folder. You can also find the [workflow](https://n8n.io/workflows/620) on n8n.io. This example usage workflow would use the following nodes. - [Start](../../core-nodes/Start/README.md) - [Nextcloud]() +- [HTTP Request](../../core-nodes/HTTPRequest/README.md) The final workflow should look like the following image. @@ -39,10 +40,38 @@ The final workflow should look like the following image. The start node exists by default when you create a new workflow. -### 2. Nextcloud node +### 2. Nextcloud node (create: folder) 1. First of all, you'll have to enter credentials for the Nextcloud node. You can find out how to do that [here](../../../credentials/Nextcloud/README.md). -2. Select the 'Folder' option from the *Resource* dropdown list. -3. Select the 'Create' option from the *Operation* dropdown list. -4. Enter a folder name in the *Folder* field. -5. Click on *Execute Node* to run the workflow. +2. Select the 'Folder' option from the ***Resource*** dropdown list. +3. Enter a folder name in the ***Folder*** field. +4. Click on ***Execute Node*** to run the node. + +![Create a folder in Nextcloud using the Nextcloud node](./Nextcloud_node.png) + +### 3. HTTP Request node (GET) + +1. Enter `https://n8n.io/n8n-logo.png` in the ***URL*** field. +2. Select 'File' from the ***Response Format*** dropdown list. +3. Click on ***Execute Node*** to run the node. + +![Get a file to upload in Nextcloud using the HTTP Request node](./HTTPRequest_node.png) + +### 4. Nextcloud1 node (upload: file) + +1. Select the credentials that you entered in the Nextcloud node. +2. Enter the path of the Nextcloud folder you created in the previous steps along with a file name in the ***File Path*** field. +3. Set the ***Binary Data*** toggle to true. +4. Click on ***Execute Node*** to run the node. + +![Upload a file in Nextcloud using the Nextcloud node](./Nextcloud1_node.png) + +### 5. Nextcloud2 node (list: folder) + +1. Select the credentials that you entered in the Nextcloud node. +2. Select 'Folder' from the ***Resource*** dropdown list. +3. Select 'List' from the ***Operation*** dropdown list. +4. Enter the name of the Nextcloud folder you created in the previous steps in the ***Folder Path*** field. +5. Click on ***Execute Node*** to run the node. + +![List the contents of a Nextcloud folder using the Nextcloud node](./Nextcloud2_node.png) diff --git a/docs/nodes/nodes-library/nodes/Nextcloud/workflow.png b/docs/nodes/nodes-library/nodes/Nextcloud/workflow.png index 9f6e09e02..2ffc0a9da 100644 Binary files a/docs/nodes/nodes-library/nodes/Nextcloud/workflow.png and b/docs/nodes/nodes-library/nodes/Nextcloud/workflow.png differ