mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add fid, url to filer post, adjust to changed folder structure
parent
22bef28f7c
commit
251fe3219a
4
API.md
4
API.md
|
@ -302,11 +302,11 @@ Examples:
|
|||
```bash
|
||||
# Basic Usage:
|
||||
> curl -F file=@report.js "http://localhost:8888/javascript/"
|
||||
{"name":"report.js","size":866}
|
||||
{"name":"report.js","size":866, "fid":"7,0254f1f3fd","url":"http://localhost:8081/7,0254f1f3fd"}
|
||||
> curl "http://localhost:8888/javascript/report.js" # get the file content
|
||||
...
|
||||
> curl -F file=@report.js "http://localhost:8888/javascript/new_name.js" # upload the file with a different name
|
||||
{"name":"report.js","size":866}
|
||||
{"name":"report.js","size":866, "fid":"3,034389657e","url":"http://localhost:8081/3,034389657e"}
|
||||
> curl "http://localhost:8888/javascript/?pretty=y" # list all files under /javascript/
|
||||
{
|
||||
"Directory": "/javascript/",
|
||||
|
|
2
Filer.md
2
Filer.md
|
@ -88,4 +88,4 @@ curl "http://localhost:8888/path/to/sources/?pretty=y"
|
|||
curl "http://localhost:8888/path/to/sources/?lastFileName=abc.txt&limit=50&pretty=y"
|
||||
```
|
||||
|
||||
The Redis and Cassandra backends are currently implemented as ["flat namespace" stores](https://github.com/chrislusf/seaweedfs/blob/master/go/filer/flat_namespace/flat_namespace_filer.go), so filers using them may not perform directory listings at this time.
|
||||
The Redis and Cassandra backends are currently implemented as ["flat namespace" stores](https://github.com/chrislusf/seaweedfs/blob/master/weed/filer/flat_namespace/flat_namespace_filer.go), so filers using them may not perform directory listings at this time.
|
|
@ -8,7 +8,7 @@ To support large files, SeaweedFS supports these two kinds of files:
|
|||
|
||||
This piece of code shows the json file structure:
|
||||
|
||||
https://github.com/chrislusf/seaweedfs/blob/master/go/operation/chunked_file.go#L24
|
||||
https://github.com/chrislusf/seaweedfs/blob/master/weed/operation/chunked_file.go#L24
|
||||
|
||||
```
|
||||
type ChunkInfo struct {
|
||||
|
|
Loading…
Reference in a new issue