WebDAV: Failed to mkdir: 415 Unsupported Media Type

What is the problem you are having with rclone?

In WebDAV-mount: Failed to mkdir: 415 Unsupported Media Type

Run the command 'rclone version' and share the full output of the command.

rclone v1.75.2

  • os/version: Microsoft Windows 11 Pro 25H2 25H2 (64 bit)
  • os/kernel: 10.0.26200.9711 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.26.9
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

WebDAV from Windows/IIS

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mkdir webdav:test

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[webdav]
type = webdav
url = https://webdav.htlvb.at/lhome/spaa
vendor = sharepoint-ntlm
user = XXX
pass = XXX
encoding = None 
Paste config here

A log from the command that you were trying to run with the -vv flag

2026/10/20 19:47:25 DEBUG : rclone: Version "v1.75.2" starting with parameters ["C:\\Portable\\rclone-v1.75.2-windows-amd64\\rclone.exe" "mkdir" "webdav:test" "-vv"]
2026/10/20 19:47:25 DEBUG : Creating backend with remote "webdav:test"
2026/10/20 19:47:25 DEBUG : Using config file from "C:\\Users\\alfre\\AppData\\Roaming\\rclone\\rclone.conf"
2026/10/20 19:47:25 DEBUG : found headers:
2026/10/20 19:47:25 INFO  : webdav root 'test': Making directory
2026/10/20 19:47:25 ERROR : Attempt 1/3 failed with 1 errors and: 415 Unsupported Media Type
2026/10/20 19:47:25 INFO  : webdav root 'test': Making directory
2026/10/20 19:47:25 ERROR : Attempt 2/3 failed with 1 errors and: 415 Unsupported Media Type
2026/10/20 19:47:25 INFO  : webdav root 'test': Making directory
2026/10/20 19:47:25 ERROR : Attempt 3/3 failed with 1 errors and: 415 Unsupported Media Type
2026/10/20 19:47:25 DEBUG : 3 go routines active
2026/10/20 19:47:25 NOTICE: Failed to mkdir: 415 Unsupported Media Type

welcome to the forum,

what other webdav tools have you tested?
did you test windows native map webdav feature?

KI says, the problem can easily be solved. I wonder if that is really true...
Here is the suggestion (from Kimi 3)
"The fix is trivial (one line ContentLength: &zero in _mkdir).

Hey, thanks for answering so immediately :slight_smile:
With Windows native "map network drive" I can create folders.
However, I can't use the drive for programming with VisualStudio.
This is why I search for an alternative - and now I try rclone.

what about rclone ls, rclone lsd ?

Both commands work.

Maybe another helpful (?) hint from KI:
This is a known issue with IIS/SharePoint. rclone ought to explicitly set `ContentLength: 0` when performing an `MKCOL` request (as it does in `createChunksUploadDirectory` for Nextcloud), but it fails to do so.

And this is allegedly the reason, why "Transfer-Encoding: chunked" in HTTP-Request - which is then refused with ERROR 415 by IIS.