Retrofit: How to resume a partial upload

Created on 24 Jan 2016  路  5Comments  路  Source: square/retrofit

Does anyone have an example of how to resume a failed upload of a large file, that has already partially uploaded.

Most helpful comment

@swankjesse there are unanswered questions already on SO on this topic actually.

All 5 comments

This is definitely not supported by Retrofit. If you want to do it in OkHttp, you鈥檒l need to configure your own request headers to put a partial request body.

As far as I can tell there's not even anything close to a standard around this anyway for Retrofit to try and implement. This needs to be done at a lower level because it requires more coordination with the remote server.

@JakeWharton Could you point us in the right direction at least, to maybe achieve this using OkHttp, I need to get this done in a neat way. Or maybe other options to uploading large files (Like videos recorded by the phone)?

Stack overflow is a better place for this question.

@swankjesse there are unanswered questions already on SO on this topic actually.

Was this page helpful?
0 / 5 - 0 ratings