A node to upload files to the Owncloud webdav API.
- 1. Edit the node and add a client ID, secret and server url.
- 2. Optionally fill in the remote path with the location and filename of the uploaded file on the server.
Connect a node with the following output
msg.payload: The text content of the file upload
msg.localpath: The local file path of the file to upload
msg.remotepath: The remote file path of the file to upload
The config.remotepath has a higher priority as the msg.remotepath
Either the payload or the localpath are required. The payload has a higher priority as the localpath
``` [{"id":"f688abc5.a75d38","type":"tab","label":"Flow 1"},{"id":"fd399ee4.73862","type":"inject","z":"f688abc5.a75d38","name":"","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":"","x":188.01041412353516,"y":256.9809341430664,"wires":[["6b4fad3a.ec2ee4"]]},{"id":"6b4fad3a.ec2ee4","type":"function","z":"f688abc5.a75d38","name":"create input message","func":"msg.payload = \"Test message content\";\n// msg.remotepath = \"myFolder/myFile.txt\";\n\nnode.error(msg);\nreturn msg;","outputs":1,"noerr":0,"x":424.00525665283203,"y":257.7621703147888,"wires":[["d1279dbf.e73d2"]]},{"id":"d1279dbf.e73d2","type":"agile-ownCloud-upload","z":"f688abc5.a75d38","name":"Owncloud Uploader","clientId":"id","clientSecret":"secret","owncloudServer":"http://my-server/owncloud","remotepath":"myFolder/myFile.txt","x":712.0070114135742,"y":256.96006965637207,"wires":[["d5c0f102.f4d97"]]},{"id":"d5c0f102.f4d97","type":"debug","z":"f688abc5.a75d38","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":910,"y":260,"wires":[]}] ```changelog:
v1.0.1: Added an output to the node with status messages.
v1.0.0: init