-
-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a file as part of a multiformdatacontent? #539
Comments
Bumping this issue. I wrote the question in StackOverflow like this https://stackoverflow.com/questions/51753141/multipart-content-with-refit When I try use Multipart it always showing the exception.
|
Hi @albilaga Maybe a dumb question but do you have a global content type set in your Refit Implementation? |
Hi @ehouarn-perret, You will either need a StreamPart or a ByteArrayPart with the name of file in the request. Then decorate your request with the multipart attribute.
|
@vatsalyagoel , thanks I know I will try this out whenever I can |
@vatsalyagoel No I don't set any global content type |
Is there any way to add a file as part of a multiformdatacontent:
Currently I have something like that (obviously used with a
HttpClient
):How does it translate with the refit paradigm?
The text was updated successfully, but these errors were encountered: