Q:

How to handle cancelled webdav PUT operations

As I am writing my own WebDAV server - based on SabreDAV (php) - I came along with the problem, that most clients (all but Windows Explorer) do not send a DELETE request when the user has cancelled a file upload (PUT request).
I could not find any hint for that (eg in the RFCs) whether the client has to do so or how the server could figure out that not all file contents have been streamed/sent.

A:

Ok, found out that most clients send Content-Length header with the stream. So I will be able to use that information to undo file creation.

