FilePicker documentation on Multiple Files

How can I handle multiple files when using FilePicker?

I can now upload Attachment to Salesforce one file at a time but what if I "Allow selecting multiple files "?

How can I get the files from the file picker? Is there a documentation somewhere on this?

Nevermind I found out eventually.

filepicker.file becomes an Array if “Allow selecting multiple files” is enabled.

I can then use something like the following:

1 Like

I am not getting how we can handle both the index at a time(in case of 2) and then return the value