tus / tus-java-client

The tus client for Java.
https://tus.io
MIT License
213 stars 88 forks source link

Response server as JSON #89

Closed jcgo810326 closed 1 year ago

jcgo810326 commented 1 year ago

I need your clients to be able to receive a json structure, after an exception or when finishing the file upload job. It's possible??

Acconut commented 1 year ago

Unfortunately, there is no native feature for this right now. However, you may be able to workaround this by overwriting the prepareConnection method to obtain the HttpUrlConnection object. In https://github.com/tus/tus-java-client/issues/59 this is described for retrieving response headers but it may also work for the response body.

Acconut commented 1 year ago

Closing this in favor of https://github.com/tus/tus-java-client/issues/98