1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 08:15:25 +02:00
tldr/pages/common/http-server-upload.md
Managor 4b1e0196d1
common/*: reduce usage of "command-line" (part 3) (#16951)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
2025-06-28 13:12:44 +00:00

28 lines
1,004 B
Markdown

# http-server-upload
> Zero-configuration 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`