...
In order to do a file upload using forms, this is a two step process:
Step 1
Add the properties required for files in your forms schema. For example:
Code Block |
---|
{ ... "myInvoice": { "type": "object", "properties": { "filename": {"type": "string"}, "contentLength": {"type": "integer"}, "contentType": {"type": "string"}, "contentEncoding": {"type": "string"}, "content": {"type": "string"} } } } |
Step 2
“Tell” the form configuration to “draw” the field as a filepicker
field using the render
attribute. For example:
...