yandex: set Features.WriteMimeType=false as Yandex ignores mime types
Yandex appears to ignore mime types set as part of the PUT request or as part of a PATCH request. The docs make no mention of being able to set a mime type, so set WriteMimeType=false indicating the backend can't set mime types on uploaded files.
This commit is contained in:
parent
135adb426e
commit
3b24a4cada
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue