Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Zero Byte files when pushed from iPad over WebDAV

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?

iPad 2, iOS 5.0.1, Lion Server 10.7.2

Posted on Dec 21, 2011 3:59 AM

Reply
3 replies

Zero Byte files when pushed from iPad over WebDAV

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.