aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-03-15 19:28:11 +0000
committerGitHub <noreply@github.com>2022-03-15 19:28:11 +0000
commite23bcd47f931631936708f44f5071716131e4d77 (patch)
treedc66b8086d66da34f44a5d6eb582b38e33b31d99 /README.md
parentMerge pull request #757 from svenstaro/dependabot/cargo/reqwest-0.11.10 (diff)
parentAdd an example for the media-type feature (diff)
downloadminiserve-e23bcd47f931631936708f44f5071716131e4d77.tar.gz
miniserve-e23bcd47f931631936708f44f5071716131e4d77.zip
Merge pull request #755 from mayjs/upload-mediatypes
Allow to set the accept input attribute to arbitrary values
Diffstat (limited to 'README.md')
-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