Open main menu

Extension:WebDAV

MediaWiki extensions manual
OOjs UI icon advanced.svg
WebDAV
Release status: beta
Description WebDAV interface to MediaWiki articles
Latest version 3.0.1
MediaWiki >=1.31
Database changes Yes
License GPL
Download
Hooks used
LoadExtensionSchemaUpdates
Translate the WebDAV extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

WebDAV is a set of extensions to HTTP to support distributed authoring and versioning. It defines some request methods, message headers and XML message bodies which at their most basic, add metadata and locking to HTTP. Because it's based on HTTP and XML, it's quite easy to implement a WebDAV server in CGI or PHP. WebDAV maps very cleanly to file system primitives, so most modern operating systems support mounting WebDAV resources as file systems.

The Wikipedia:WebDAV article and the WebDAV home page describe WebDAV in more detail. WebDAV is formally defined in RFC 4918. The WebDAV versioning extension, DeltaV, is defined in RFC 3253.

InstallationEdit

  • Download and place the file(s) in a directory called WebDAV in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'WebDAV' );
    
  • Copy or symlink webdav.php from the into your installation path.
  • Add the following constants to your LocalSettings.php
   define( "WEBDAV_AUTH_NONE", 0 );   
   define( "WEBDAV_AUTH_TOKEN", 1 );
   define( "WEBDAV_AUTH_MW", 2 );
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.