AJAX Post With Values and Files

I have a native app that needs to POST Name/Value pairs and one or more files with a single POST. The values will be text, the files may be text or an SQLite database.

This is essentially like sending formData to a server.

What is the most appropriate way to do this using the AppStudio AJAX function?

Thank you

this is what i use

host="https://domain/test.asp" 'i am using asp classic in web server
data="parm1=" & encodeURIComponent(datastring1) & "&parm2=" & encodeURIComponent(datastring2)
ajax(host,"POST",data)

asp classic, test.asp

data1=request.form("parm1")
data2=request.form("parm2")

hth

Thanks
Teo

Thank you!