Home Forums OS X Server and Client Discussion Web WebDAV upload results in zero bytes file

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #381510
    zvordauk
    Participant

    Hi all,

    I am having a weird problem with Apple’s WebDAV service on Lion Server.
    I’ve enabled a folder to share over WebDAV and all students can access it.
    When they upload a file from their iPad (e.g. Pages) everything looks ok on their end – the progress bar shows the upload and the size of the file bieing pushed.
    However when it arrives on the server it shows up as zero bytes and cannot be opened.
    I’ve done some research and it appears to be that there is a mis-spelling in the header ‘Chunked’ instead of ‘chunked’
    Further research has brought up this:

    A month ago I wrote about how uploads from the Mac WebDAV client were
    mysteriously resulting in 0 byte files. I’ve revisited this and discovered
    that the problem occurs when using an Apache proxy.

    The Mac client sends HTTP messages with a “Transfer-Encoding: Chunked”
    header, but Apache expects “chunked” (lowercase) and decides it isn’t
    supported. To make Apache also handle “Chunked”, you can use mod_headers:

    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
    RequestHeader edit Transfer-Encoding Chunked chunked early

    (I think the Mac client is wrong here – although HTTP header names are
    case-insensitive, I don’t believe the same applies to header values. In
    any case, this workaround is harmless.)

    I don’t know enough about Apache to go messing but it sounds like this could solve my problems!
    Can anybody out there point me towards where this needs to go (httpd.conf?) and how it should be formatted?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed