diff options
author | Johannes May <johannes@may-se.de> | 2022-03-13 17:57:29 +0000 |
---|---|---|
committer | Johannes May <johannes@may-se.de> | 2022-03-13 18:17:22 +0000 |
commit | 8e37888aa04a29bc0019f7546cc435420aeaa458 (patch) | |
tree | b66953dafe851305b601cb0fcacc577f536f6bcc | |
parent | Add test cases for the media-type parameters (diff) | |
download | miniserve-8e37888aa04a29bc0019f7546cc435420aeaa458.tar.gz miniserve-8e37888aa04a29bc0019f7546cc435420aeaa458.zip |
Add an example for the media-type feature
-rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |