forked from TrueCloudLab/rclone
drive: preserve mime type on file update - fixes #417
This commit is contained in:
parent
93c60c34e1
commit
6cc9c09610
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue