drive: preserve mime type on file update - fixes #417

This commit is contained in:
Nick Craig-Wood 2016-04-04 16:58:28 +01:00
parent 93c60c34e1
commit 6cc9c09610

View File

@ -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),
}