Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

yandex: set Features.WriteMimeType=false as Yandex ignores mime types

Nick Craig-Wood3b24a4cada05
diff --git a/backend/yandex/yandex.go b/backend/yandex/yandex.go
index fcc4d1650..191ed83b9 100644
--- a/backend/yandex/yandex.go
+++ b/backend/yandex/yandex.go
@@ -277,7 +277,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
f.setRoot(root)
f.features = (&fs.Features{
ReadMimeType: true,
- WriteMimeType: true,
+ WriteMimeType: false, // Yandex ignores the mime type we send
CanHaveEmptyDirectories: true,
}).Fill(ctx, f)
f.srv.SetErrorHandler(errorHandler)
diff --git a/docs/content/overview.md b/docs/content/overview.md
index db10693af..1a67922e0 100644
--- a/docs/content/overview.md
+++ b/docs/content/overview.md
@@ -48,7 +48,7 @@ Here is an overview of the major features of each cloud storage system.
| SugarSync | - | No | No | No | - |
| Tardigrade | - | Yes | No | No | - |
| WebDAV | MD5, SHA1 ³ | Yes ⁴ | Depends | No | - |
-| Yandex Disk | MD5 | Yes | No | No | R/W |
+| Yandex Disk | MD5 | Yes | No | No | R |
| The local filesystem | All | Yes | Depends | No | - |
### Notes