diff options
author | Michael Hueschen <mhuesch@users.noreply.github.com> | 2021-03-08 21:23:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 21:23:49 +0000 |
commit | fe1ca485f2a27fc7a9ed79f045e6ba576dfb49eb (patch) | |
tree | ac0fa05ca82715e66ab11e7e6015bbc84159cc24 /README.md | |
parent | Update CHANGELOG for recent change (diff) | |
download | miniserve-fe1ca485f2a27fc7a9ed79f045e6ba576dfb49eb.tar.gz miniserve-fe1ca485f2a27fc7a9ed79f045e6ba576dfb49eb.zip |
Document file uploading with curl
Closes #302 (or at least is intended to).
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |