You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to upload multiple files at the same time in vbcs?

edited Jan 25, 2021 2:22PM in Visual Builder 1 comment

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="

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!