An example of uploading a file using linkToFileUpload
Everything is done using linkToFileUpload
= : linkToFileUpload(title: "Select file"; code: $code; limit: 1; type: "*"; refresh: true)
code: "=: set(table: $#ntn; field: 'h_file' = $#input)"
The entire structure of the selected files is passed to the $#input
variable.
Also, if we enable the multiple parameter in the file field, we can use +
— field: 'h_file' + $#input