#serve #upload #cli #static #file-upload #networking

nightly bin+lib serve-cli

This is a file serving and file upload service in the local area network (LAN) CLI

11 releases (5 stable)

1.0.4 Jun 12, 2023
1.0.3 Jun 11, 2023
1.0.1 Apr 9, 2023
0.1.5 Apr 9, 2023
0.1.0 Nov 1, 2022

#21 in #serve

MIT license

26KB
281 lines

This is a file serving and file upload service in the local area network (LAN) CLI

Crates.io Rust license

install

cargo install serve-cli
$ serve-cli

# for browser serving local files
[INFO  serve_cli] Server listening on http://172.20.10.2:8787

# upload file fontend
[INFO  serve_cli] Server listening on http://172.20.10.2:8585

# also can upload file from curl
curl --location --request POST 'http://172.20.10.2:8585/' --data-binary '@/home/andrew/Documents/wordlist1.txt'

image.png

image.png

Dependencies

~20–31MB
~475K SLoC