micromata / dave

A totally simple and very easy to configure stand alone webdav server
Apache License 2.0
350 stars 46 forks source link

Question] Can I avoid the "code=503" response when uploading a file to Dave #60

Open hansoon1 opened 1 year ago

hansoon1 commented 1 year ago

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 ?