mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Remove old leagcy wording from file node info to stop confusing users.
This commit is contained in:
parent
9ba9998bd6
commit
b165129388
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<script type="text/x-red" data-template-name="file">
|
<script type="text/html" data-template-name="file">
|
||||||
<div class="form-row node-input-filename">
|
<div class="form-row node-input-filename">
|
||||||
<label for="node-input-filename"><i class="fa fa-file"></i> <span data-i18n="file.label.filename"></span></label>
|
<label for="node-input-filename"><i class="fa fa-file"></i> <span data-i18n="file.label.filename"></span></label>
|
||||||
<input id="node-input-filename" type="text">
|
<input id="node-input-filename" type="text">
|
||||||
@ -34,7 +34,7 @@
|
|||||||
<div class="form-tips"><span data-i18n="file.tip"></span></div>
|
<div class="form-tips"><span data-i18n="file.tip"></span></div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/x-red" data-template-name="file in">
|
<script type="text/html" data-template-name="file in">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-filename"><i class="fa fa-file"></i> <span data-i18n="file.label.filename"></span></label>
|
<label for="node-input-filename"><i class="fa fa-file"></i> <span data-i18n="file.label.filename"></span></label>
|
||||||
<input id="node-input-filename" type="text" data-i18n="[placeholder]file.label.filename">
|
<input id="node-input-filename" type="text" data-i18n="[placeholder]file.label.filename">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<script type="text/x-red" data-help-name="file">
|
<script type="text/html" data-help-name="file">
|
||||||
<p>Writes <code>msg.payload</code> to a file, either adding to the end or replacing the existing content.
|
<p>Writes <code>msg.payload</code> to a file, either adding to the end or replacing the existing content.
|
||||||
Alternatively, it can delete the file.</p>
|
Alternatively, it can delete the file.</p>
|
||||||
<h3>Inputs</h3>
|
<h3>Inputs</h3>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<p>Alternatively, this node can be configured to delete the file.</p>
|
<p>Alternatively, this node can be configured to delete the file.</p>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/x-red" data-help-name="file in">
|
<script type="text/html" data-help-name="file in">
|
||||||
<p>Reads the contents of a file as either a string or binary buffer.</p>
|
<p>Reads the contents of a file as either a string or binary buffer.</p>
|
||||||
<h3>Inputs</h3>
|
<h3>Inputs</h3>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
@ -50,11 +50,6 @@
|
|||||||
<dt class="optional">filename <span class="property-type">string</span></dt>
|
<dt class="optional">filename <span class="property-type">string</span></dt>
|
||||||
<dd>If not configured in the node, this optional property sets the name of the file to be read.</dd>
|
<dd>If not configured in the node, this optional property sets the name of the file to be read.</dd>
|
||||||
<dt class="optional">error <span class="property-type">object</span></dt>
|
<dt class="optional">error <span class="property-type">object</span></dt>
|
||||||
<dd><i>deprecated</i>: If enabled in the node, when the node hits an error
|
|
||||||
reading the file, it will send a message with no <code>payload</code>
|
|
||||||
and this <code>error</code> property set to the error details. This
|
|
||||||
mode of behaviour is deprecated and not enabled by default for new
|
|
||||||
instances of the node. See below for more information.</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
<h3>Details</h3>
|
<h3>Details</h3>
|
||||||
<p>The filename should be an absolute path, otherwise it will be relative to
|
<p>The filename should be an absolute path, otherwise it will be relative to
|
||||||
@ -65,11 +60,5 @@
|
|||||||
<p>When split into multiple messages, each message will have a <code>parts</code>
|
<p>When split into multiple messages, each message will have a <code>parts</code>
|
||||||
property set, forming a complete message sequence.</p>
|
property set, forming a complete message sequence.</p>
|
||||||
<p>Encoding of input data can be specified from list of encodings if output format is string.</p>
|
<p>Encoding of input data can be specified from list of encodings if output format is string.</p>
|
||||||
<h4>Legacy error handling</h4>
|
|
||||||
<p>Before Node-RED 0.17, if this node hit an error whilst reading the file, it would
|
|
||||||
send a message with no <code>msg.payload</code> and <code>msg.error</code> set to the
|
|
||||||
details of the error. This is a deprecated mode of behaviour for the node that new
|
|
||||||
instances will not do. If required, this mode can be re-enabled within the node
|
|
||||||
configuration.</p>
|
|
||||||
<p>Errors should be caught and handled using a Catch node.</p>
|
<p>Errors should be caught and handled using a Catch node.</p>
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user