I am making a page with a "Sending Email" function.
User will input the information and attached files before click Send button.
I have a REST API that will received email information via JSON data and send to the target address.
Everything work fine except for the attached files which I am still struggle.
I plan to convert the files into base64 string to include in the JSON data. The string will be convert back into a File on REST API side.
However, I don't know how to get the file data from Upload widget.
Is there any way to do it?