There is a image list I would like to upload to the server
I am using httpmime , and here is the code:
for(File file : gs.id_img) {
builder.addPart("id_img[]", new FileBody(file));
}
But in the backend it seems can not get the post value, how to fix it? thanks
you have to work like this
I have changed
Content-Type: application/octet-stream\r\n"
toContent-Type: image/jpeg\r\n\r\n
and it worked :)