N NightRaven Member Aug 18, 2022 #1 How can I upload multiple images using the same keyname for mulipartfile data? When I send multiple MFD in a list with the same keyname the api overwrites it and only takes the last file/image B4X: Copy Dim MFD As MultipartFileData MFD.Initialize MFD.Dir = rp.GetSafeDirDefaultExternal("") MFD.FileName = MyFile MFD.KeyName = "userfile" MFD.ContentType = "image/png"
How can I upload multiple images using the same keyname for mulipartfile data? When I send multiple MFD in a list with the same keyname the api overwrites it and only takes the last file/image B4X: Copy Dim MFD As MultipartFileData MFD.Initialize MFD.Dir = rp.GetSafeDirDefaultExternal("") MFD.FileName = MyFile MFD.KeyName = "userfile" MFD.ContentType = "image/png"
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2022 #2 I guess that the server doesn't expect multiple files or expects them to have different keynames. Upvote 0