BerlinCoder Member Licensed User Mar 17, 2017 #1 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))
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))
Erel B4X founder Staff member Licensed User Longtime User Mar 19, 2017 #2 B4X: Dim fd1, fd2 As MultipartFileData fd1.initialize ... fd2.initialize ... QuestionJob.PostMultipart(..., Array (fd1, fd2)) Upvote 0
B4X: Dim fd1, fd2 As MultipartFileData fd1.initialize ... fd2.initialize ... QuestionJob.PostMultipart(..., Array (fd1, fd2))