This sample illustrates how to upload binary file with description and tags directly to dataspace collection FLOB column using html form and INSERT statement.
File uploading to FLOB consist of the following actions
- user selects some file and press Upload button
- browser reads file and sends file content to the server
- server stores file content into the tmp folder
- server constructs INSERT statement and instead of FLOB column value passes the following function call
toFlob('filename on client filesystem', readFile('path/to/tmp/file/onserver'))
readFile - reads file into dataspace
toFlob - renames flob
Please read READ.ME to properly configure the node.
Choose file, fill optional description and tags and press upload button. If upload was successful check flobfiles table using links at the bottom.
select * from flobfiles