webDAV - Upload: Zero Byte Files

Tutorials on ownCloud administration
Forum rules
You may post your own tutorials here. Please keep in mind that a moderator has to approve it before everybody can read it!

webDAV - Upload: Zero Byte Files

Postby snapr » Thu Feb 09, 2012 11:28 am

Problem
After the file has been uploaded it shows up as being empty.

Example
  • using OSX's Finder
  • on some linux distributions

Solution on linux
Edit fIle /etc/davfs2/davfs2.conf
Code: Select all
use_locks 0

Source: http://johnreid.it/2009/09/26/mount-a-w ... ntu-linux/

Solution OSX, using Finder
Finder will only work with apache and mod_php. Any other webserver or fastcgi system will fail.

Source: Developer tanghus
When using this with Apache + FastCGI PHP completely drops the request body, so it will seem as if the PUT request was succesful, but the file will end up empty.

Source: http://code.google.com/p/sabredav/wiki/Finder
You have to use a different client like Cyberduck

Comments appreciated ~ snapr
I am currently not active on these forums.

Best regards
snapr
snapr
Admin
 
Posts: 108
Joined: Mon Jan 30, 2012 8:32 pm

Re: webDAV - Upload: Zero Byte Files

Postby tanghus » Tue Feb 14, 2012 8:31 am

Currently Finder will only work with apache and mod_php. Any other webserver or fastcgi system will fail.
User avatar
tanghus
Developer
 
Posts: 80
Joined: Sat Jan 21, 2012 5:14 pm

Re: webDAV - Upload: Zero Byte Files

Postby Vathek » Sat Feb 25, 2012 5:27 pm

Another workaround is to use muCommander with which webDAV upload works fine and also doubles as a FTP-client.
Vathek
Beginner
 
Posts: 19
Joined: Thu Feb 02, 2012 3:20 am

Re: webDAV - Upload: Zero Byte Files

Postby ParksBeatrice » Wed Apr 04, 2012 9:14 am

Thank you very much for this short tutoril!
That's very useful for me.
So, when I faced such a problem, that was really great to find the answer here ;)
Thanks a lot!
ParksBeatrice
Newbie
 
Posts: 1
Joined: Wed Apr 04, 2012 9:09 am


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests