aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
Diffstat (limited to 'weed')
-rw-r--r--weed/operation/submit.go2
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)
}