Hello, I'm trying to make an app on Android of a client for WebDAV. I faced the problem when uploading a file larger than about 1.5MB to Dave. Response message is below: **Response{protocol=http/1.1, code=503, message=Service Unavailable,** Using OkHttp3 Lib, **RequestBody requestBody = RequestBody.create(MediaType.parse(mediaType), file); Request request = new Request.Builder().url(urlToUpload).put(requestBody).build; Response response = client.newCall(request).execute();** This works finewhen uploading a file smaller than 1.5MB, but I faved 503 response for files larger than 1.5MB. How can I avoid this situation ?
Hello,
I'm trying to make an app on Android of a client for WebDAV.
I faced the problem when uploading a file larger than about 1.5MB to Dave.
Response message is below:
Response{protocol=http/1.1, code=503, message=Service Unavailable,
Using OkHttp3 Lib,
RequestBody requestBody = RequestBody.create(MediaType.parse(mediaType), file);
Request request = new Request.Builder().url(urlToUpload).put(requestBody).build;
Response response = client.newCall(request).execute();
This works finewhen uploading a file smaller than 1.5MB, but I faved 503 response for files larger than 1.5MB.
How can I avoid this situation ?