From 35f6518c365a663d7642aabd39c655ce7143b0b6 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 25 Sep 2020 02:41:21 -0700 Subject: [PATCH] weed upload: usePublicUrl was not being used on big files fix https://github.com/chrislusf/seaweedfs/issues/1492 --- weed/operation/submit.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/operation/submit.go b/weed/operation/submit.go index e8bec382a..25843c892 100644 --- a/weed/operation/submit.go +++ b/weed/operation/submit.go @@ -170,6 +170,9 @@ func (fi FilePart) Upload(maxMB int, master string, usePublicUrl bool, jwt secur } } fileUrl := "http://" + ret.Url + "/" + id + if usePublicUrl { + fileUrl = "http://" + ret.PublicUrl + "/" + id + } count, e := upload_one_chunk( baseName+"-"+strconv.FormatInt(i+1, 10), io.LimitReader(fi.Reader, chunkSize),