Skip to content

Commit

Permalink
Add an example for the media-type feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mayjs committed Mar 13, 2022
1 parent b653b36 commit 971c8d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 971c8d2

Please sign in to comment.