# WebDAV: Failed to mkdir: 415 Unsupported Media Type

**URL:** <https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365>\
**Category:** Help and Support\
**Created:** [October 20, 2026, 6:00pm UTC](https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365 "2026-10-20T18:00:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alf11](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@alf11](https://forum.rclone.org/u/alf11)\
**Post date:** [October 20, 2026, 6:00pm UTC](https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365/1 "2026-10-20T18:00:01Z")

</div>

#### 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`)

```auto
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.

```auto
[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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 20, 2026, 6:02pm UTC](https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365/2 "2026-10-20T18:02:52Z")

</div>

welcome to the forum,

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

---

<div class="post-metadata">

**Author:** ![alf11](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@alf11](https://forum.rclone.org/u/alf11)\
**Post date:** [October 20, 2026, 6:02pm UTC](https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365/3 "2026-10-20T18:02:58Z")

</div>

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`).

---

<div class="post-metadata">

**Author:** ![alf11](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@alf11](https://forum.rclone.org/u/alf11)\
**Post date:** [October 20, 2026, 6:05pm UTC](https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365/4 "2026-10-20T18:05:33Z")

</div>

Hey, thanks for answering so immediately 🙂  
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.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [October 20, 2026, 6:06pm UTC](https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365/5 "2026-10-20T18:06:59Z")

</div>

> [@alf11](#):
>
> `415 Unsupported Media Type`

what about `rclone ls`, `rclone lsd` ?

---

<div class="post-metadata">

**Author:** ![alf11](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@alf11](https://forum.rclone.org/u/alf11)\
**Post date:** [October 20, 2026, 6:08pm UTC](https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365/6 "2026-10-20T18:08:14Z")

</div>

Both commands work.

---

<div class="post-metadata">

**Author:** ![alf11](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@alf11](https://forum.rclone.org/u/alf11)\
**Post date:** [October 20, 2026, 6:12pm UTC](https://forum.rclone.org/t/webdav-failed-to-mkdir-415-unsupported-media-type/54365/7 "2026-10-20T18:12:23Z")

</div>

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.
