Reputation: 1379
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've 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).
Upvotes: 1
Views: 1712
Reputation: 99851
Using Content-Range
for PUT is explicitly forbidden by the HTTP standard, and a really bad idea.
https://www.rfc-editor.org/rfc/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.
Upvotes: 2