How do I send a file object from a coded component to the datastore?

The App variable of type File Object Class does not work. That property is only an ID reference to an Object Class. We do not have datatypes for “blob”.

You could try one of the following:

  1. Store the blob in an App Variable of type String, with a mystring = btoa(<blobfilecontent>)"function first, converting the blob (binary) to base64 ascii string (btoa = built-in binary-to-ascii function). And when creating the file, get that string app variable (in the file content property of the “Create File” action node), and run atob(<base64string>) for the file content generation.
  2. Try storing the file content in window.myFile. Then you store it in a variable available in your browser session. You may return that window.myFile with a function in the file content property of the “Create File” action node.