Skip to content
  1. Extras
  2. WebDAV

WebDAV

WebDAVMediaSource is a network media source for MODX Revolution.

Supported operations:

  • List directory contents
  • Upload files
  • Create file
  • Edit file
  • Delete directory/file
  • Drag and drop in tree
  • Cache directory contents and file metadata
  • Access resources via site proxy

Supports MySQL and SQLSrv schemas. Works with WebDAV v1. Locking is not supported.

Tested with SabreDAV, CloudMe.com, Yandex Disk.

Parameters

NameDefaultDescription
allowedFileTypesIf set, only files with these extensions. Comma-separated, no dot.
authMethodAuth scheme: basic or digest. Use scheme supported by server
basePathPath to source files.
baseUrlURL for file access. Ignored if proxy is enabled.
cachedfalseCache directory contents
cacheTime10Cache lifetime in minutes
imageExtensionsjpg,jpeg,png,gifComma-separated image extensions. MODX creates thumbnails for these.
loginUsername
passwordPassword
previewfalseCreate image thumbnails. May load the network. Use with caution.
proxyfalseAccess resources via site proxy if server is not publicly accessible
serverServer address as proto://host. Port after colon
skipFiles.svn,.git,_notes,nbproject,.idea,.DS_StoreComma-separated. MODX skips files/folders matching these masks.
thumbnailQuality90Thumbnail quality 0–100.
thumbnailTypepngImage type for thumbnails.
verifySSLtrueVerify SSL certificates

Security policy

NameDescription
loadAbility to download objects

Download via proxy

If the WebDAV server does not allow direct download, use the proxy processor. URL format: http://yoursite.ru/assets/components/webdav/index.php?ctx=web&action=proxy&source=SOURCEID&src=path/file.ext Parameters include sourceID and file path. Works only with WebDAV sources.