From fc3924ac70dbb67d5f932d573e3654421aa3b2e8 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 26 Feb 2018 08:01:23 -0800 Subject: [PATCH] set file name to base file name fixing https://github.com/chrislusf/seaweedfs/issues/632 --- weed/operation/submit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/operation/submit.go b/weed/operation/submit.go index 349cddfce..b81f64593 100644 --- a/weed/operation/submit.go +++ b/weed/operation/submit.go @@ -104,7 +104,7 @@ func newFilePart(fullPathFilename string) (ret FilePart, err error) { ret.FileSize = fi.Size() ext := strings.ToLower(path.Ext(fullPathFilename)) ret.IsGzipped = ext == ".gz" - ret.FileName = fullPathFilename + ret.FileName = fi.Name() if ext != "" { ret.MimeType = mime.TypeByExtension(ext) }