diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go index 9ba4839a3..be0423954 100644 --- a/backend/webdav/webdav.go +++ b/backend/webdav/webdav.go @@ -968,6 +968,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio Body: in, NoResponse: true, ContentLength: &size, // FIXME this isn't necessary with owncloud - See https://github.com/nextcloud/nextcloud-snap/issues/365 + ContentType: fs.MimeType(src), } if o.fs.useOCMtime { opts.ExtraHeaders = map[string]string{