Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Use public url for returned file url result

chrislusfc1bc529654d4
diff --git a/go/operation/submit.go b/go/operation/submit.go
index ca151dfb9b..8bba14c5f4 100644
--- a/go/operation/submit.go
+++ b/go/operation/submit.go
@@ -63,7 +63,7 @@ func SubmitFiles(master string, files []FilePart,
results[index].Error = err.Error()
}
results[index].Fid = file.Fid
- results[index].FileUrl = file.Server + "/" + file.Fid
+ results[index].FileUrl = ret.PublicUrl + "/" + file.Fid
}
return results, nil
}