diff options
| author | henry <zhanggm@sugon.com> | 2021-01-04 14:50:01 +0800 |
|---|---|---|
| committer | henry <zhanggm@sugon.com> | 2021-01-04 14:50:01 +0800 |
| commit | 97a94eddab407219faf6b5a5f809057cde331eaa (patch) | |
| tree | f0f2111f812daa43dca31218bfa62f3f53ee7bd4 /weed/operation/submit.go | |
| parent | 14ddd155082a455542a992220d6c61e658420c6b (diff) | |
| parent | 2ce86f308ea4836cf534e50dc1388932253b5cd5 (diff) | |
| download | seaweedfs-97a94eddab407219faf6b5a5f809057cde331eaa.tar.xz seaweedfs-97a94eddab407219faf6b5a5f809057cde331eaa.zip | |
Merge branch 'master' of https://github.com/fuyouyshengwu/seaweedfs
Diffstat (limited to 'weed/operation/submit.go')
| -rw-r--r-- | weed/operation/submit.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/operation/submit.go b/weed/operation/submit.go index 25843c892..e785b68a9 100644 --- a/weed/operation/submit.go +++ b/weed/operation/submit.go @@ -32,7 +32,7 @@ type FilePart struct { type SubmitResult struct { FileName string `json:"fileName,omitempty"` - FileUrl string `json:"fileUrl,omitempty"` + FileUrl string `json:"url,omitempty"` Fid string `json:"fid,omitempty"` Size uint32 `json:"size,omitempty"` Error string `json:"error,omitempty"` @@ -69,6 +69,7 @@ func SubmitFiles(master string, grpcDialOption grpc.DialOption, files []FilePart file.Replication = replication file.Collection = collection file.DataCenter = dataCenter + file.Ttl = ttl results[index].Size, err = file.Upload(maxMB, master, usePublicUrl, ret.Auth, grpcDialOption) if err != nil { results[index].Error = err.Error() |
