mirror of
https://github.com/rclone/rclone.git
synced 2026-01-04 17:43:50 +00:00
b2: implement large file uploading - fixes #456
This commit is contained in:
@@ -169,7 +169,7 @@ func Equal(src, dst Object) bool {
|
||||
}
|
||||
|
||||
// MimeType returns a guess at the mime type from the extension
|
||||
func MimeType(o Object) string {
|
||||
func MimeType(o ObjectInfo) string {
|
||||
mimeType := mime.TypeByExtension(path.Ext(o.Remote()))
|
||||
if !strings.ContainsRune(mimeType, '/') {
|
||||
mimeType = "application/octet-stream"
|
||||
|
||||
Reference in New Issue
Block a user