You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I implement concurrent uploading of a large file in Android? #113
Unlike tus-js-client, the tus-java-client does not have native support for the concatenation extension, so your endeavor would involve a lot of manual work. This means that you would have to split the large file on your own and start a separate, partial tus upload for each part. For each part, you should set Upload-Concat: partial, which can be done by overwriting the prepareConnection method, as is done here for SSL configuration: https://github.com/tus/tus-java-client?tab=readme-ov-file#can-i-use-my-own-custom-sslsocketfactory Once the parts are uploaded, you would have to manually send the final POST request to concatenate the partial uploads together.
All in all, not easy. I hope that we can add native support for this in the future.
Activity
Acconut commentedon Jul 11, 2024
Unlike tus-js-client, the tus-java-client does not have native support for the concatenation extension, so your endeavor would involve a lot of manual work. This means that you would have to split the large file on your own and start a separate, partial tus upload for each part. For each part, you should set
Upload-Concat: partial, which can be done by overwriting theprepareConnectionmethod, as is done here for SSL configuration: https://github.com/tus/tus-java-client?tab=readme-ov-file#can-i-use-my-own-custom-sslsocketfactory Once the parts are uploaded, you would have to manually send the final POST request to concatenate the partial uploads together.All in all, not easy. I hope that we can add native support for this in the future.