From 6cc9c096107e14774cee8b5edf4507e57b658eef Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 4 Apr 2016 16:58:28 +0100 Subject: [PATCH] drive: preserve mime type on file update - fixes #417 --- drive/drive.go | 1 + 1 file changed, 1 insertion(+) diff --git a/drive/drive.go b/drive/drive.go index b4e159d8d..f1bca4059 100644 --- a/drive/drive.go +++ b/drive/drive.go @@ -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), }