Files
tldr/pages.zh/common/http-server-upload.md

28 lines
933 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# http-server-upload
> 零配置的命令行HTTP服务器提供轻量级接口用于上传文件。
> 更多信息:<https://github.com/crycode-de/http-server-upload>。
- 在默认端口启动HTTP服务器以便将文件上传到当前目录
`http-server-upload`
- 启动HTTP服务器并指定允许的最大上传文件大小默认为200 MiB
`MAX_FILE_SIZE={{size_in_megabytes}} http-server-upload`
- 在特定端口启动HTTP服务器以便将文件上传到当前目录
`PORT={{port}} http-server-upload`
- 启动HTTP服务器将上传的文件存储在特定目录中
`UPLOAD_DIR={{path/to/directory}} http-server-upload`
- 启动HTTP服务器使用特定目录临时存储上传过程中的文件
`UPLOAD_TMP_DIR={{path/to/directory}} http-server-upload`
- 启动HTTP服务器接受在HTTP POST中带有特定令牌字段的上传
`TOKEN={{secret}} http-server-upload`