Skip to content
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

How to properly upload a File (multipart/form-data) using Retrofit 2.0-beta2 #1137

Closed
vivekkiran opened this issue Sep 29, 2015 · 3 comments
Closed

Comments

@vivekkiran
Copy link

This is in connection with #1063, I need a sample code uploading file as multipart/form-data, in Retrofit 2.0-beta2, there is no much documentation and examples anywhere on properly uploading a file using retrofit 2.0-beta2, I have followed the recipe given in OkHttp's wiki for posting a multipart request and its working fine, but I would like have an example for retrofit 2.0-beta2.

@vivekkiran vivekkiran changed the title How to properly upload a File using Retrofit 2.0-beta2 How to properly upload a File (multipart-form-data) using Retrofit 2.0-beta2 Sep 29, 2015
@vivekkiran vivekkiran changed the title How to properly upload a File (multipart-form-data) using Retrofit 2.0-beta2 How to properly upload a File (multipart/form-data) using Retrofit 2.0-beta2 Sep 29, 2015
@ayon115
Copy link

ayon115 commented Sep 30, 2015

I have posted sample code in #1063 , It will help hopefully.

@JakeWharton
Copy link
Member

Rolling this into #1140 as they're the same thing.

@vivekkiran
Copy link
Author

Thanks, @ayon115 your sample code helped a lot :).

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants