Merge branch 'smamudhan-nextcloud-enhancement'

This commit is contained in:
Tanay Pant 2020-08-25 10:17:09 +02:00
commit 934832c74f
6 changed files with 36 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 57 KiB