Project

General

Profile

[Solved] Issue uploading files less than 64 Kb using mod_webdav

Added by nikhilmahale almost 4 years ago

1. In my project, we are using lighttpd server to do HTTP file transfer with Windows Explorer.
2. mod_webdav module has been enabled to support PUT requests.
3. But I have observed that we cannot upload files less than 64 Kb.
4. When a file with size less than 64 Kb is uploaded to server, the HTTP request succeeds but the file size on server is shown as zero.

Additional Details:
lighttpd version: 1.4.54
Embedded target device kernel version: 2.6.37.6
Clients Used: cURL, WinSCP, Windows File Explorer
Also attaching build spec file and server conf file.

Files:
https://redmine.lighttpd.net/attachments/1986
https://redmine.lighttpd.net/attachments/1987


Replies (4)

RE: Issue uploading files less than 64 Kb using mod_webdav - Added by gstrauss almost 4 years ago

Have you tested with lighttpd 1.4.55? There is a bug in mod_webdav in lighttpd 1.4.54 (#2958) which might affect your config.

Alternatively, you can take the patch from #2958 and rebuild with your lighttpd.spec.

Unless you have patched lighttpd, there is no webdav.max-upload-size. If you have patched lighttpd, you might want to see if that is your issue with < 64Kb files. Otherwise, you probably want server.max-request-size

RE: Issue uploading files less than 64 Kb using mod_webdav - Added by nikhilmahale almost 4 years ago

Yes we have created our own webdav.max-upload-size config to limit data stored to server.

I tried the patch at #2958 but it did not resolve my issue.

I will check now whether updating to 1.4.55 fixes the issue as well as whether anything in my modified code is causing the issue.

RE: Issue uploading files less than 64 Kb using mod_webdav - Added by gstrauss almost 4 years ago

If you have modified mod_webdav code, you neglected to share that information in your initial post.

Please test lighttpd mod_webdav without your custom code modifications. You should have narrowed down the problem to your own code before posting here.

    (1-4/4)