Fast-android-networking: How to upload dynamic number of files with same param?

Created on 12 Mar 2018  路  4Comments  路  Source: amitshekhariitbhu/Fast-Android-Networking

Most helpful comment

We will add this feature in the new release.

All 4 comments

We will add this feature in the new release.

This is something I am interested in too, please let me know if I can assist.

Since using OKHttp can handle this, looking forward to the new release

MultipartBody.Builder rb = new MultipartBody.Builder()
        .setType(MultipartBody.FORM)
        .addFormDataPart("title", "Square Logo");


for (File file : targetDir.listFiles()) {
    rb.addFormDataPart("file", file.getName(),
            RequestBody.create(MediaType.parse(getMimeTypeFromPath(file.getAbsolutePath())), file));
}

@sduqlsc I have added this support, please check the latest version 1.0.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GulajavaMinistudio picture GulajavaMinistudio  路  3Comments

anderscheow picture anderscheow  路  5Comments

igabice picture igabice  路  8Comments

MohadFarhan picture MohadFarhan  路  5Comments

alitong picture alitong  路  8Comments