From 1805d780f250a5802830933636d95dd7f762121d Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Tue, 9 Nov 2021 15:35:35 -0300 Subject: [PATCH] http-server-upload: add page (#7201) --- pages/common/http-server-upload.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/http-server-upload.md diff --git a/pages/common/http-server-upload.md b/pages/common/http-server-upload.md new file mode 100644 index 000000000..81e918e6d --- /dev/null +++ b/pages/common/http-server-upload.md @@ -0,0 +1,28 @@ +# http-server-upload + +> Zero-configuration command-line HTTP server which provides a lightweight interface to upload files. +> More information: . + +- 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`