mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 19:26:01 +02:00
http-server-upload: add page (#7201)
This commit is contained in:
parent
1d0a5e9c0b
commit
1805d780f2
1 changed files with 28 additions and 0 deletions
28
pages/common/http-server-upload.md
Normal file
28
pages/common/http-server-upload.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# http-server-upload
|
||||
|
||||
> Zero-configuration command-line HTTP server which provides a lightweight interface to upload files.
|
||||
> More information: <https://github.com/crycode-de/http-server-upload>.
|
||||
|
||||
- Start an HTTP server on the default port to upload files to the current directory:
|
||||
|
||||
`http-server-upload`
|
||||
|
||||
- Start an HTTP server with the specified maximum allowed file size for uploads in MiB (defaults to 200 MiB):
|
||||
|
||||
`MAX_FILE_SIZE={{size_in_megabytes}} http-server-upload`
|
||||
|
||||
- Start an HTTP server on a specific port to upload files to the current directory:
|
||||
|
||||
`PORT={{port}} http-server-upload`
|
||||
|
||||
- Start an HTTP server, storing the uploaded files in a specific directory:
|
||||
|
||||
`UPLOAD_DIR={{path/to/directory}} http-server-upload`
|
||||
|
||||
- Start an HTTP server using a specific directory to temporarily store files during the upload process:
|
||||
|
||||
`UPLOAD_TMP_DIR={{path/to/directory}} http-server-upload`
|
||||
|
||||
- Start an HTTP server accepting uploads with a specific token field in the HTTP post:
|
||||
|
||||
`TOKEN={{secret}} http-server-upload`
|
Loading…
Add table
Reference in a new issue