mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Update README.md
This commit is contained in:
parent
83ab3966d1
commit
b5f3578fe4
|
@ -110,7 +110,7 @@ SeaweedFS uses HTTP REST operations to write, read, delete. The responses are in
|
||||||
To upload a file: first, send a HTTP POST, PUT, or GET request to `/dir/assign` to get an `fid` and a volume server url:
|
To upload a file: first, send a HTTP POST, PUT, or GET request to `/dir/assign` to get an `fid` and a volume server url:
|
||||||
|
|
||||||
```
|
```
|
||||||
> curl -X POST http://localhost:9333/dir/assign
|
> curl http://localhost:9333/dir/assign
|
||||||
{"count":1,"fid":"3,01637037d6","url":"127.0.0.1:8080","publicUrl":"localhost:8080"}
|
{"count":1,"fid":"3,01637037d6","url":"127.0.0.1:8080","publicUrl":"localhost:8080"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ http://localhost:8080/3/01637037d6.jpg?height=200&width=200&mode=fill
|
||||||
SeaweedFS applies the replication strategy at a volume level. So, when you are getting a file id, you can specify the replication strategy. For example:
|
SeaweedFS applies the replication strategy at a volume level. So, when you are getting a file id, you can specify the replication strategy. For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -X POST http://localhost:9333/dir/assign?replication=001
|
curl http://localhost:9333/dir/assign?replication=001
|
||||||
```
|
```
|
||||||
|
|
||||||
The replication parameter options are:
|
The replication parameter options are:
|
||||||
|
|
Loading…
Reference in a new issue