switched to buffer input for uploading

This commit is contained in:
jkoschke
2021-02-22 23:11:11 +01:00
parent 0ed1e74080
commit 92904f00eb
3 changed files with 26 additions and 20 deletions

View File

@@ -34,7 +34,7 @@
</script>
<script type="text/x-red" data-help-name="nextcloud-webdav-list">
<p>Connects to a Nextcloud server and lists directory content of a given path)</p>
<p>Connects to a Nextcloud/WebDav server and lists directory content of a given path)</p>
<h3>Inputs</h3>
<dl class="message-properties">
@@ -106,7 +106,7 @@
</script>
<script type="text/x-red" data-help-name="nextcloud-webdav-out">
<p>Connects to a Nextcloud server and downloads a file and sends it to the output</p>
<p>Connects to a Nextcloud/WebDav server and downloads a file and sends it to the output</p>
<h3>Inputs</h3>
<dl class="message-properties">
@@ -173,18 +173,17 @@
</script>
<script type="text/x-red" data-help-name="nextcloud-webdav-in">
<p>Connects to a Nextcloud server and uploads a file to a given directory</p>
<p>Connects to a Nextcloud/WebDav server and uploads a file to a given directory</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">any</span>
<span class="property-type">Binary buffer</span>
</dt>
<dd> Incoming message triggers receiving a list containing a directory content. Any payload
is possible. </dd>
<dd> The payload should contain the file which should be uploaded in a binary buffer </dd>
<dt class="optional">filename <span class="property-type">string</span></dt>
<dd> The filename should be an absolute path, otherwise it will be relative to the working
directory of the Node-RED process.</dd>
<dd> A filename can be specified on incoming message or in nodes properties.
Saves the uploaded file with the given name. The property should also include the file extension.</dd>
<dt class="optional">directory <span class="property-type">string</span></dt>
<dd> A directory can be specified on incoming message or in nodes properties. Uploads the
file to the users root directory if not set.</dd>