/SimpleHTTPServerWithUpload

Simple HTTP Server With Upload written in Python 3

Primary LanguagePython

SimpleHTTPServerWithUpload

Simple HTTP Server With Upload written in Python.
This script works with version 3.6.
Earlier versions will cause runtime errors.

This is a modified version from the original source.
https://gist.github.com/UniIsland/3346170

I have added icons for directory and videos.
Pictures (BMP, GIF, JPG, PNG) will display thumbnails.

Directory listing is in a table format with file sizes and creation dates.

This script also supports IP Address & Port binding.

Change 'SimpleHTTPServerWithUpload.sh' to suit your requirements.

To post files to this server use:

curl -X POST -F file=@<path-to-file> http://<host-ip>:8000