Forums » Development »
[Solved] mod_webdav can not upload file when file directory not exist
Added by over 16 years ago
environment?lighttpd-1.4.19?ubuntu8.04.
In mod_webdav.c ,line 1681 to 1694.When opening the file, did not determine whether there is a directory.So if the file directory not exist,return 403.
Is that what special considerations or a bug?
thx
Replies (2)
RE: mod_webdav can not upload file when file directory not exist - Added by over 16 years ago
The WebDAV RFC says if the 'collection' doesn't exist to return a 409, so if you really wanted to you could write a quick patch to test if the parent directory exists, if not then return 409, otherwise 403. However, the extra test to see if the directory exists isn't really worth it since the client will most likely react the same way.
RE: [Solved] mod_webdav can not upload file when file directory not exist - Added by gstrauss over 4 years ago
Fixed long ago in lighttpd mod_webdav. See mod_webdav litmus tests and #1818