Android Question PostMultipart on OkHTTPUtils2

rossati

Active Member
Licensed User
Longtime User
Hello
my be is my error, but I am unable to send more of one file whith PostMultipart.
Obviusly my File list contains more than one file, but only the last is sent.

Thanks

John Rossati
 

rossati

Active Member
Licensed User
Longtime User
Thanks to alimanam and DonManfred
My mistake was to create and initialize MultipartFileData once i.e:

Dim fl As MultipartFileData
fl.Dir = File.DirDefaultExternal
files.Initialize
If pictures.size > 0 Then
For i = 0 To pictures.size - 1
 
Upvote 0

rossati

Active Member
Licensed User
Longtime User
Instead I corrected in:
If pictures.size > 0 Then
For i = 0 To pictures.size - 1
Dim filePath As Map = fg.pathinfo(pictures.GetKeyAt(i))
Dim fl As MultipartFileData
fl.Initialize
...

And all pictures was sent.

John Rossati
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Please use code tag when posting code!

codetag001.png


codetag002.png


codetag003.png
 
Upvote 0
Top