Anyone has webDAV working??

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
Hey guys,
i am having some issues with webDAV plugin, it never worked for me.

Just want to ask if you have webDAV plugin working?
Are you using cloudflare?
What web hosting software do you use? cpanel? virtualmin? etc

Thanks
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
I have the webdav plugin but could never get it to work either, not because there's anything wrong with the plugin but I believe its something on the server probably plesk. When I enable it people can login and even see their files and directories but get 404 errors if they try to download or upload.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Hi all,

I've spent some time investigating and clearing some snags on the webdav plugin today. 2 main ones:

1) Plesk - This seems to tamper with the auth headers which get sent from most webdav clients so the plugin doesn't correctly authenticate the user. I've found something you can add to the .htaccess file which allows for it though. See the advice relating to Plesk here - https://support.mfscripts.com/public/kb_view/49/

2) PHP5.5+ introduced a new function called curl_file_create() for handling file uploads via Curl. Previously we could tell Curl about a file upload like this:

Code:
$data = array(
    'uploaded_file' => '@'.$tmpFilePath.';filename='.$filename,
);

$ch = curl_init();   
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
// ...

curl_exec($ch);
The '@' is no longer valid later PHP versions you have to use the curl_file_create() function. I've amended the WebDav code to allow for both older and newer versions.

If you've previously had issues with the plugin I'd recommending re-downloading it and trying again. Note that it will only work with the latest v4.3 release code.

Thanks,
Adam.
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
i have tested in on a whole bunch of php versions and web host software and i find it working on cpanel and PHP 5.3.x so far.. its just that i dont want to use cpanel because of extra costs, i use an open source right now.
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
Update: So with the latest version 4.3 and the latest webDAV plugin on PHP 5.5, i get this message:
Code:
Listing directory index.php failed
Not a valid DAV response. Please contact your web hosting service provider for assistance
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
I'd image your control panel is doing something similar. If you raise a ticket I'll take a look. I'm keen to get to the bottom of the webdav issues.
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
i do know that virtualmin has a built in webDAV addon so you can webDAV instead of FTP so that might be causing issues with it.. Not sure what centos web panel is doing to break webDAV plugin..
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
Hey Adam, I've tried the new webdav plugin, uncommented the lines in the htaccess in the plugin and of course the ones in the main htaccess and the same thing still happens, users can login and see their files and folders but cannot do anything, always keeps erroring out with Not Found. #IHatePlesk