mholt / caddy-webdav

WebDAV handler module for Caddy
Apache License 2.0
198 stars 22 forks source link

CF #35

Closed stargatecmd2009 closed 1 year ago

stargatecmd2009 commented 1 year ago

Can we get some support added for chunked uploads / setting max body size ? I'm trying to use this behind cloudflare proxy and it always fails on large files.

mholt commented 1 year ago

Possibly -- what exactly do you have in mind? Are you talking about chunked transfer encoding? https://en.wikipedia.org/wiki/Chunked_transfer_encoding

stargatecmd2009 commented 1 year ago

i not sure what it is exactly. in nginx i set client_max_body_size 99m; and with invision power board uploading a large file over 100mb+ works, i assume cause ipb has some kind of chunk support or something? i dont know

mholt commented 1 year ago

Hmm, you can already set a max body size for Caddy: https://caddyserver.com/docs/caddyfile/directives/request_body

It sounds like whatever IPB is doing is splitting the file up client-side and re-assembling it server-side with PHP. Even if we added support for something like this in the webdav module, the webdav client would have to support it.

Going to close this, since I don't think we can act on it, but if I'm wrong I'm happy to reopen this!