iOS Question post 2 image with httputils

cloner7801

Active Member
Licensed User
Longtime User
Hi,
I want to post two file (image) to my website

in server side (php) I am using $_FILES["sign"] , How can I post this files?
or How can I use post multipart? (please help me with code for b4i and php)
 

cloner7801

Active Member
Licensed User
Longtime User
I use that buy it didnt send any thing !

In server side I am using $_FILES["sign"] is it true ?
And b4i code :
B4X:
Dim job As HttpJob
                job.Initialize("job", Me)
                Dim fd1,fd2 As MultipartFileData
                fd1.Initialize
                fd1.Dir = File.DirDocuments
                fd1.FileName = "card.png"
                fd1.KeyName = "card"
                fd1.ContentType = "application/octet-stream"
               
                fd2.Initialize
                fd2.Dir = File.DirDocuments
                fd2.FileName = "sign.png"
                fd2.KeyName = "sign"
                fd2.ContentType = "application/octet-stream"
               
                job.PostMultipart("MyURL", CreateMap("id": File.ReadString(File.DirDocuments,"id")), Array(fd1,fd2))
                job.JobName = "upload"
 
Upvote 0
Top