Fuel: [ASK] Is it possible to post data and file upload with Fuel like OkHttp ?

Created on 7 Feb 2019  路  3Comments  路  Source: kittinunf/fuel

image

image

question

Most helpful comment

I guess I will close this issue.

All 3 comments

Have you checked our documentation? https://fuel.gitbook.io/documentation/core/fuel#using-multipart-form-data-uploadrequest. More specifically,

Fuel.upload("/post")
    .add(
        FileDataPart(File("myfile.json"), name = "files[]", filename="contents.json"))
    )
   .response { result ->
   }

I guess I will close this issue.

Thank you so much.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fnunezkanut picture fnunezkanut  路  6Comments

erikthered picture erikthered  路  7Comments

t-ae picture t-ae  路  5Comments

iNoles picture iNoles  路  5Comments

julfc picture julfc  路  5Comments