snippetbashTip
http-server-upload — Zero-configuration HTTP server which provides a lightweight interface to upload files. More informat
Viewed 0 times
serverconfigurationcommandhttpcliwhichhttp-server-uploadzero
Problem
How to use the
http-server-upload command: Zero-configuration HTTP server which provides a lightweight interface to upload files. More information: <https://github.com/crycode-de/http-server-upload>.Solution
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-uploadStart 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-uploadStart an HTTP server on a specific port to upload files to the current directory:
PORT={{port}} http-server-uploadStart an HTTP server, storing the uploaded files in a specific directory:
UPLOAD_DIR={{path/to/directory}} http-server-uploadStart an HTTP server using a specific directory to temporarily store files during the upload process:
UPLOAD_TMP_DIR={{path/to/directory}} http-server-uploadStart an HTTP server accepting uploads with a specific token field in the HTTP post:
TOKEN={{secret}} http-server-uploadCode Snippets
Start an HTTP server on the default port to upload files to the current directory
http-server-uploadStart 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-uploadStart an HTTP server on a specific port to upload files to the current directory
PORT={{port}} http-server-uploadStart an HTTP server, storing the uploaded files in a specific directory
UPLOAD_DIR={{path/to/directory}} http-server-uploadStart an HTTP server using a specific directory to temporarily store files during the upload process
UPLOAD_TMP_DIR={{path/to/directory}} http-server-uploadContext
tldr-pages: common/http-server-upload
Revisions (0)
No revisions yet.