mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
File node: allow filename to be overridden
This commit is contained in:
@@ -36,7 +36,9 @@
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="file">
|
||||
<p>Writes the <b>msg.payload</b> to the file specified, e.g. to create a log.</p>
|
||||
<p>Writes <b>msg.payload</b> to the file specified, e.g. to create a log.</p>
|
||||
<p>The filename can be overridden by the <code>filename</code> property
|
||||
of the incoming message.</p>
|
||||
<p>A newline is added to every message. But this can be turned off if required, for example, to allow binary files to be written.</p>
|
||||
<p>The default behaviour is to append to the file. This can be changed to overwrite the file each time, for example if you want to output a "static" web page or report.</p>
|
||||
</script>
|
||||
@@ -46,7 +48,7 @@
|
||||
category: 'storage-output',
|
||||
defaults: {
|
||||
name: {value:""},
|
||||
filename: {value:"",required:true},
|
||||
filename: {value:""},
|
||||
appendNewline: {value:true},
|
||||
overwriteFile: {value:false}
|
||||
},
|
||||
|
Reference in New Issue
Block a user