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