diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-11-03 22:32:21 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-11-03 22:32:21 -0700 |
| commit | 93e0dddbf354dc0e6e10f0f7a0839d7ba8be5d7f (patch) | |
| tree | 59761966f3f51f758c0119e3ea84c1895b2b6c8a | |
| parent | 3c54b3cff45f5b959e2c314615dbabed8b8861ff (diff) | |
| download | seaweedfs-93e0dddbf354dc0e6e10f0f7a0839d7ba8be5d7f.tar.xz seaweedfs-93e0dddbf354dc0e6e10f0f7a0839d7ba8be5d7f.zip | |
add function description
| -rw-r--r-- | weed/operation/upload_content.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go index 1fd0ed2b9..6eace2af5 100644 --- a/weed/operation/upload_content.go +++ b/weed/operation/upload_content.go @@ -37,6 +37,7 @@ func init() { var fileNameEscaper = strings.NewReplacer("\\", "\\\\", "\"", "\\\"") +// Upload sends a POST request to a volume server to upload the content func Upload(uploadUrl string, filename string, reader io.Reader, isGzipped bool, mtype string, pairMap map[string]string, jwt security.EncodedJwt) (*UploadResult, error) { return upload_content(uploadUrl, func(w io.Writer) (err error) { _, err = io.Copy(w, reader) |
