Sub UploadIt(id As String)
'get the file input
Dim fi As BANanoElement = BANAno.GetElement($"#${id}"$)
'get the selected files, if any
Dim files() As String = fi.ToObject.GetField("files").Result
'loop though each selected file
For fCnt = 0 To files.Length - 1
'create a new formdata
Dim fd As BANanoObject
fd.Initialize2("FormData", Null)
fd.SetField("upload_file", files(fCnt))
Dim result As String = BANAno.CallAjaxWait("./assets/upload.php","POST","",fd,True,Null)
Log(result)
Next
End Sub