aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJohannes May <johannes@may-se.de>2022-03-13 17:57:29 +0000
committerJohannes May <johannes@may-se.de>2022-03-13 18:17:22 +0000
commit8e37888aa04a29bc0019f7546cc435420aeaa458 (patch)
treeb66953dafe851305b601cb0fcacc577f536f6bcc /README.md
parentAdd test cases for the media-type parameters (diff)
downloadminiserve-8e37888aa04a29bc0019f7546cc435420aeaa458.tar.gz
miniserve-8e37888aa04a29bc0019f7546cc435420aeaa458.zip
Add an example for the media-type feature
Diffstat (limited to '')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index d6bf32f..d613662 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,13 @@ Sometimes this is just a more practical and quick way than doing things properly
(where `$FILE` is the path to the file. This uses miniserve's default port of 8080)
+### Take pictures and upload them from smartphones:
+
+ miniserve -u -m image -q
+
+This uses the `--media-type` option, which sends a hint for the expected media type to the browser.
+Some mobile browsers like Firefox on Android will offer to open the camera app when seeing this.
+
## Features
- Easy to use