Skip to content
Reference

Adapter: WebDAV

Read and write files on a WebDAV server.

On this page

Purpose

Read, write, list, move and delete files on a WebDAV server: the WebDAV scheme of a Mirth File Reader or File Writer. Pick files up with the file pickup trigger.

Auth

  • authType: basic (username and password, the default), bearer (token) or none. The credentials are encrypted at rest.
  • https:// for PHI. Plain http:// is accepted for Mirth parity with a warning on save: it sends the login and every file in clear text.
  • The profile's connection options apply: a private CA (tlsCaPem), a client certificate, the minimum TLS version and a proxy.

Settings

Auth is chosen with authType: none, basic, bearer (default basic). Dotted names are fields inside an object setting. Secret settings are encrypted at rest, never returned by a read, and shown masked in the console and in exports; their defaults are not shown.

SettingTypeRequiredDefaultSecretDescription
baseUrlurlYesNoFolder URL every path is relative to, e.g. https://dav.example.test/remote.php/dav/files/medhook (opens in a new tab). Use https:// for PHI: plain http:// is accepted with a warning.
authTypeenum: none, basic, bearerNobasicNoHTTP authentication.
credentialsobjectNo
credentials.usernamestringNoNoUsed when authType is basic.
credentials.passwordstringNoYesUsed when authType is basic.
credentials.tokenstringNoYesUsed when authType is bearer.
timeoutnumberNo30000NoRequest timeout in milliseconds.
maxFileBytesnumberNo52428800NoLargest file a read will load into memory (bytes).
uploadModeenum: temp-rename, directNotemp-renameNotemp-rename writes a hidden .part file then renames it; direct writes the final name.
writeModeenum: overwrite, append, error-if-existsNooverwriteNooverwrite replaces an existing file; append adds to it (written directly); error-if-exists fails the step.
createDirsbooleanNofalseNoCreate the parent directory before writing.
tlsCaPemstringNoYesPEM CA certificate(s) to verify the server against. See tlsCaMode.
tlsCaModeenum: replace, addNoNoTrust: replace = only this CA (default), add = the system CAs plus this CA. Needs tlsCaPem.
tlsClientCertPemstringNoYesPEM client certificate, for servers that require mutual TLS. Set with tlsClientKeyPem.
tlsClientKeyPemstringNoYesPEM private key for the client certificate (encrypted at rest).
tlsClientPfxstringNoYesClient certificate and key as a base64 PKCS#12 (.p12 / .pfx) bundle, instead of the PEM pair.
tlsClientPassphrasestringNoYesPassphrase of the PKCS#12 bundle.
tlsMinVersionenum: TLSv1.2, TLSv1.3NoNoLowest TLS version to accept (default TLSv1.2).
proxyUrlurlNoNoHTTP(S) proxy, e.g. http://proxy.example.test:3128 (opens in a new tab). The proxy host must pass the SSRF rules (SSRF_ALLOWLIST for a private one).
proxyUsernamestringNoNoProxy user (Basic auth).
proxyPasswordstringNoYesProxy password.
noProxyarray of stringNoNoHosts sent direct, not through the proxy: a name (and its subdomains), .suffix, host:port or *.

Actions

A trailing ? marks an optional step parameter. A message can supply only the keys in the last column; everything else comes from the step.

ActionWhat it doesStep parametersKeys a message may supply
downloadRead a file from the WebDAV server.remotePath, encoding?None
uploadWrite a file to the WebDAV server.remotePath, filenamePattern?, content?content
listList files in a directory.remotePath?None
deleteDelete a file.remotePathNone
renameMove (rename) a file.fromPath, toPathNone

Minimal example

The smallest profile the engine accepts: the required settings only, with synthetic values. Create it with POST /api/adapter-profiles, then test it with POST /api/adapter-profiles/{id}/test.

json
{
  "name": "WebDAV (example)",
  "adapterType": "webdav",
  "config": {
    "baseUrl": "https://webdav.example.test/base"
  }
}

Limits

  • Every request, and every redirect, goes through the SSRF rules (a private host needs SSRF_ALLOWLIST), and the connection checks the address it resolves.
  • Paths are relative to baseUrl; a . or .. segment is refused before any request is sent.
  • An error names the method and HTTP status only; the response body is never read or shown. A folder listing (PROPFIND) is read up to 8 MB.
  • Writes use a hidden .part file and a MOVE by default. Append downloads the file and uploads it again: it is not atomic.
  • Reads load the whole file into memory, up to maxFileBytes.

Reference