From fe1ca485f2a27fc7a9ed79f045e6ba576dfb49eb Mon Sep 17 00:00:00 2001 From: Michael Hueschen Date: Mon, 8 Mar 2021 15:23:49 -0600 Subject: Document file uploading with curl Closes #302 (or at least is intended to). --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 713d2b4..8bce096 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,15 @@ Sometimes this is just a more practical and quick way than doing things properly miniserve -i 192.168.0.1 -i 10.13.37.10 -i ::1 /tmp/myshare +### Upload a file using `curl`: + + # in one terminal + miniserve -u . + # in another terminal + curl -F "path=@$FILE" http://localhost:8080/upload\?path\=/ + +(where `$FILE` is the path to the file. This uses miniserve's default port of 8080) + ## Features - Easy to use -- cgit v1.2.3