iOS Question Ho to upload more multi files by [class] HttpUtils2

BerlinCoder

Member
Licensed User
Hi, I am using the following code in order to upload some information with a file to a server. I need to upload more than one file with my query. I have searched before in the forum, but I could not find the answer.

B4X:
Dim fd As MultipartFileData
        fd.Initialize
        fd.Dir = File.DirDocuments
        fd.FileName = "1.jpg"
        fd.KeyName = "attachment1"
        fd.ContentType = "application/octet-stream"
        QuestionJob.PostMultipart(PublicCodes.URLQuestionRegistration, CreateMap("customer_ID": PublicCodes.CustomerID, "category_ID": "2", "description":question), Array(fd))
 
Top