sgreben / http-file-server

tiny portable HTTP file server. single binary, no dependencies. linux, osx, windows. #golang
MIT License
214 stars 40 forks source link

Add transmision speed and progress #3

Closed winstarst closed 4 years ago

winstarst commented 4 years ago

http-file-server is very usfull for me, and it give me much help of my test.

Could you add transmission speed and progress to the server log, then we can see the translation quality of client.

Thank u.

winstarst commented 4 years ago

Now, I can get the speed by curl, which is commited by v1.53. It works fine for me.

Uploading files using cURL $ ./http-file-server -uploads /=/path/to/serve 2020/03/10 22:00:54 serving local path "/path/to/serve" on "/" 2020/03/10 22:00:54 http-file-server listening on ":8080"

curl -LF "file=@example.txt" localhost:8080/path/to/upload/to