Updated Filer Server API (markdown)

Chris Lu 2020-12-26 15:09:43 -08:00
parent aff40e99df
commit d698874957

@ -35,6 +35,9 @@ You can append to any HTTP API with &pretty=y to see a formatted json output.
| header: `Content-Type` | used for auto compression | empty |
| prefixed header: `Seaweed-` | example: `Seaweed-name1: value1`. Returned as `Seaweed-Name1: value1` in GET/HEAD response header. | empty |
### notice
`AutoChunking not supported for method PUT` so If the file length is greater than 256MB, only the previous 256MB will be saved.
Examples:
```bash
# Basic Usage:
@ -128,9 +131,6 @@ curl -X DELETE http://localhost:8888/path/to/a/file?tagging
| PUT | <file_url>?tagging | Prefixed with "Seaweed-" | set the meta data |
| DELETE | <file_url>?tagging | | remove all the "Seaweed-" prefixed header |
# notice
`AutoChunking not supported for method PUT` so If the file length is greater than 256MB, only the previous 256MB will be saved.
### Create an empty folder
Folders usually are created automatically when uploading a file. To create an empty file, you can use this: