diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-02-26 08:01:23 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-02-26 08:01:23 -0800 |
| commit | fc3924ac70dbb67d5f932d573e3654421aa3b2e8 (patch) | |
| tree | 2c17f754baa036dc41ccccab98a2ba399694fadf | |
| parent | b2b8a003c1e422607cdaffb3d4af88cbd985269c (diff) | |
| download | seaweedfs-fc3924ac70dbb67d5f932d573e3654421aa3b2e8.tar.xz seaweedfs-fc3924ac70dbb67d5f932d573e3654421aa3b2e8.zip | |
set file name to base file name
fixing https://github.com/chrislusf/seaweedfs/issues/632
| -rw-r--r-- | weed/operation/submit.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |
