From 8e37888aa04a29bc0019f7546cc435420aeaa458 Mon Sep 17 00:00:00 2001 From: Johannes May Date: Sun, 13 Mar 2022 18:57:29 +0100 Subject: Add an example for the media-type feature --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.md') 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 -- cgit v1.2.3