diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-03-15 19:28:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 19:28:11 +0000 |
commit | e23bcd47f931631936708f44f5071716131e4d77 (patch) | |
tree | dc66b8086d66da34f44a5d6eb582b38e33b31d99 /README.md | |
parent | Merge pull request #757 from svenstaro/dependabot/cargo/reqwest-0.11.10 (diff) | |
parent | Add an example for the media-type feature (diff) | |
download | miniserve-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.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 |