Can one upload files using Python SimpleHTTPServer or cgi?

Viewed 22913

I would like to have a simple web page on which user can upload files. What would be the simplest way to do it.

I know how to start SimpleHTTPServer but I do not know how I can upload files using SimpleHTTPServer. I do not even know if it is possible.

I found some code for uploading files using cgi but if I execute this code in the command line it just prints me HTML code on the screen.

2 Answers
Related