trevorwang / retrofit.dart

retrofit.dart is an dio client generator using source_gen and inspired by Chopper and Retrofit.
https://mings.in/retrofit.dart/
MIT License
1.08k stars 246 forks source link

Retrofit Requests #658

Open Moatamed8 opened 7 months ago

Moatamed8 commented 7 months ago

Dear ,

I tried using this package but I'm confused about some missing features. Firstly, why can't I upload a List of Files with a body model?

Files are annotated with @Part Body model is annotated with @Body Secondly, when I upload a file with a body model, only the body is sent, and the file is not included in the request.

Thirdly, what if this function expects both a body and a file, but I only want to send the body? Should I create two functions to handle this, or is there another approach?

Please provide examples for uploading a body with multiple images and an example for uploading a single file with a body.

Thank you.

lailai0715 commented 1 week ago

I'm also facing this issue, any updates?