main.cs1632 chars48 lines
This is a simple HTTP server that listens on port 8000 on "localhost" and accepts POST requests to "/upload" to upload a file. The file is saved to the system's temporary folder and a JSON response is returned with the file name and size. The response is serialized using Newtonsoft.Json.
gistlibby LogSnag