How to upload multiple files at the same time in vbcs?
Content
Hi All,
How to upload multiple files at the same time in rest API. When I am going to select from file picker I want that count how many files picked how to get that count or is there any other options, how to achieve it. Please guide me.
For your reference,
<oj-file-picker select-on='click' on-oj-select="[[$listeners.ojFilePickerOjSelect2]]">
<oj-button slot='trigger' chroming="solid">
Choose File
</oj-button>
</oj-file-picker>
sample json passed in rest API:
{ "p_sch_line_id":"1025",
"p_reason":"reason2",
"p_remarks":"From Postman v1",
"Attachment_details":[
{"file_name":"sample1",
"file_type":"txt",
"file_data":"Rm9vdG5vdGUgMTogVGhpcyBpcyBzaW1pbGFyIHRvIHdoYXQgaXMgYXZhaWxhYmxlIGZvciBYTUwgZGF0YSB1c2luZyB0aGUgRG9jdW1lbnQgT2JqZWN0IE1vZGVsIChET00pLCBhIGxhbmd1YWdlLW5ldXRyYWwgYW5kIHBsYXRmb3JtLW5ldXRyYWwgb2JqZWN0IG1vZGVsIGFuZCBBUEkgZm9yIGFjY2Vzc2luZyB0aGUgc3RydWN0dXJlIG9mIFhNTCBkb2N1bWVudHMgdGhhdCBpcyByZWNvbW1lbmRlZCBieSB0aGUgV29ybGQgV2lkZSBXZWIgQ29uc29ydGl1bSAoVzNDKS4="