Adapter: WebDAV
Read and write files on a WebDAV server.
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) ornone. The credentials are encrypted at rest.https://for PHI. Plainhttp://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.
| Setting | Type | Required | Default | Secret | Description |
|---|---|---|---|---|---|
baseUrl | url | Yes | No | Folder 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. | |
authType | enum: none, basic, bearer | No | basic | No | HTTP authentication. |
credentials | object | No | |||
credentials.username | string | No | No | Used when authType is basic. | |
credentials.password | string | No | Yes | Used when authType is basic. | |
credentials.token | string | No | Yes | Used when authType is bearer. | |
timeout | number | No | 30000 | No | Request timeout in milliseconds. |
maxFileBytes | number | No | 52428800 | No | Largest file a read will load into memory (bytes). |
uploadMode | enum: temp-rename, direct | No | temp-rename | No | temp-rename writes a hidden .part file then renames it; direct writes the final name. |
writeMode | enum: overwrite, append, error-if-exists | No | overwrite | No | overwrite replaces an existing file; append adds to it (written directly); error-if-exists fails the step. |
createDirs | boolean | No | false | No | Create the parent directory before writing. |
tlsCaPem | string | No | Yes | PEM CA certificate(s) to verify the server against. See tlsCaMode. | |
tlsCaMode | enum: replace, add | No | No | Trust: replace = only this CA (default), add = the system CAs plus this CA. Needs tlsCaPem. | |
tlsClientCertPem | string | No | Yes | PEM client certificate, for servers that require mutual TLS. Set with tlsClientKeyPem. | |
tlsClientKeyPem | string | No | Yes | PEM private key for the client certificate (encrypted at rest). | |
tlsClientPfx | string | No | Yes | Client certificate and key as a base64 PKCS#12 (.p12 / .pfx) bundle, instead of the PEM pair. | |
tlsClientPassphrase | string | No | Yes | Passphrase of the PKCS#12 bundle. | |
tlsMinVersion | enum: TLSv1.2, TLSv1.3 | No | No | Lowest TLS version to accept (default TLSv1.2). | |
proxyUrl | url | No | No | HTTP(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). | |
proxyUsername | string | No | No | Proxy user (Basic auth). | |
proxyPassword | string | No | Yes | Proxy password. | |
noProxy | array of string | No | No | Hosts 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.
| Action | What it does | Step parameters | Keys a message may supply |
|---|---|---|---|
download | Read a file from the WebDAV server. | remotePath, encoding? | None |
upload | Write a file to the WebDAV server. | remotePath, filenamePattern?, content? | content |
list | List files in a directory. | remotePath? | None |
delete | Delete a file. | remotePath | None |
rename | Move (rename) a file. | fromPath, toPath | None |
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.
{
"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
.partfile 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.