aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2018-09-27 01:11:16 -0700
committerGitHub <noreply@github.com>2018-09-27 01:11:16 -0700
commit83ab3966d1e08b9c35c6d9fb15425d5e0766d46e (patch)
tree3b9e84276a8d1f2207fc0bd24e12e474d285ebf4
parenta36226197241194823ca4ccad03a9d62ae11c82a (diff)
downloadseaweedfs-83ab3966d1e08b9c35c6d9fb15425d5e0766d46e.tar.xz
seaweedfs-83ab3966d1e08b9c35c6d9fb15425d5e0766d46e.zip
do not use PUT for uploading files
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 438bd74c8..eb6463eb5 100644
--- a/README.md
+++ b/README.md
@@ -114,14 +114,14 @@ To upload a file: first, send a HTTP POST, PUT, or GET request to `/dir/assign`
{"count":1,"fid":"3,01637037d6","url":"127.0.0.1:8080","publicUrl":"localhost:8080"}
```
-Second, to store the file content, send a HTTP multi-part PUT or POST request to `url + '/' + fid` from the response:
+Second, to store the file content, send a HTTP multi-part POST request to `url + '/' + fid` from the response:
```
-> curl -X PUT -F file=@/home/chris/myphoto.jpg http://127.0.0.1:8080/3,01637037d6
+> curl -F file=@/home/chris/myphoto.jpg http://127.0.0.1:8080/3,01637037d6
{"size": 43234}
```
-To update, send another PUT or POST request with updated file content.
+To update, send another POST request with updated file content.
For deletion, send an HTTP DELETE request to the same `url + '/' + fid` URL: