Fuel: Customizations for multi file upload

Created on 8 May 2017  路  5Comments  路  Source: kittinunf/fuel

First of all, great thing that multi file upload has been implemented!

I propose adding some options to allow setting

  • media type
  • file name
  • field value

for example: in OkHttp I can do this:

body.addFormDataPart("images[]", "image_name.jpg", RequestBody.create(MediaType.parse("image/jpeg"), imageFile))
feature

Most helpful comment

Sound interesting. It will be supported in next release.

All 5 comments

Sound interesting. It will be supported in next release.

media type

Related to #155

Brilliant!
Could you also add an option for the field value the files get assigned to?
Maybe a data class that hold the files + the field value...

@Querschlag I'm not knowledgeable in the field of HTTP Upload, so was the feature you asked for was added?

I think it should be supported already. Closing this.

Was this page helpful?
0 / 5 - 0 ratings