Advice-for-file-upload

As we all known, Python is popular all the way. smart and cute, e.g. one command:

python -m http.server 8888
and you can visit it in browser, GOOD ! you can download file now.
But what about if I want to upload a file ?
Why not add this function ?
Please add one command for this.
Thanks
June 24, 2024

I agree.

There are many cases I wanna use such a functionality,

at which time I had to use some alternative, like uploadserver.

I’d be glad if Python can make it without any 3rd pkg.

But strictly speaking, to allow to upload files may be dangerous, so if this is added to http.server or somewhere else, it shall be disable by default, and only be enabled by some cmdline flags like --upload