mirror of
https://github.com/rclone/rclone.git
synced 2026-03-01 19:01:11 +00:00
drive: preserve mime type on file update - fixes #417
This commit is contained in:
@@ -1049,6 +1049,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo) error {
|
||||
}
|
||||
updateInfo := &drive.File{
|
||||
Id: o.id,
|
||||
MimeType: fs.MimeType(o),
|
||||
ModifiedDate: modTime.Format(timeFormatOut),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user