Nginx/Webdav/Put – Content-Range support

By | January 12, 2018
Questions:

I have installed WebDav extensions(–with-http_dav_module,nginx-dav-ext-module) for Nginx, and now i can write, read files using this protocol. But i need to write data part by part with PUT method, i found that i can use Content-Range header for this, but i can’t find any extension for Nginx to work with Content-Range.

How can i achieve this? any suggestions?
I can’t read data from server and append new data to current and then write it(data is too big).

Answers:

Using Content-Range for PUT is explicitly forbidden by the HTTP standard, and a really bad idea.

http://tools.ietf.org/html/rfc7231#section-4.3.4

I wrote a simple specification that allows you to append data:

http://sabre.io/dav/http-patch/

But it does mean that you need to run sabre/dav, and not nginx’s webdav module.

Leave a Reply

Your email address will not be published. Required fields are marked *