Dear sir,
I would like to pass a file and text from B4X to php file. I have written the B4X code , however I do not have any idea to write the php code. Would you please give me some advise on it ?
Thanks
Mak
This is my B4X code:
My B4X code:
Private Sub Button1_Click
Dim j As HttpJob
j.Initialize("",Me)
Dim files As List
files.Initialize
Dim fd As MultipartFileData
fd.Dir = File.DirAssets
fd.FileName=targetImageName 'just a string
fd.KeyName = "file"
'Add fileData to file list
files.Add(fd)
'
Dim NV As Map
NV.Initialize
NV.Put("depositAmount",targetDeposit)
'
j.PostMultipart("php url",NV,files)