mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 19:19:11 +08:00
weed upload: usePublicUrl was not being used on big files
fix https://github.com/chrislusf/seaweedfs/issues/1492
This commit is contained in:
parent
22049dc2e6
commit
35f6518c36
@ -170,6 +170,9 @@ func (fi FilePart) Upload(maxMB int, master string, usePublicUrl bool, jwt secur
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fileUrl := "http://" + ret.Url + "/" + id
|
fileUrl := "http://" + ret.Url + "/" + id
|
||||||
|
if usePublicUrl {
|
||||||
|
fileUrl = "http://" + ret.PublicUrl + "/" + id
|
||||||
|
}
|
||||||
count, e := upload_one_chunk(
|
count, e := upload_one_chunk(
|
||||||
baseName+"-"+strconv.FormatInt(i+1, 10),
|
baseName+"-"+strconv.FormatInt(i+1, 10),
|
||||||
io.LimitReader(fi.Reader, chunkSize),
|
io.LimitReader(fi.Reader, chunkSize),
|
||||||
|
Loading…
Reference in New Issue
Block a user