This project is read-only.

Implement file upload

Topics: blog, faq
Sep 10, 2013 at 1:43 PM
Does it support for file upload? As I can see that I could read the content from Request.Body, and analyze to expected file (remove the header). Is there any other way?
<form name="" id="uploadFormId" action="FileUploader" enctype="multipart/form-data" method="post">
    <input type="file" name="fileUpload"/> <input type="submit" value="Upload File"/>

       HttpListener _listener = HttpListener.Create(IPAddress.Any, 8080);
        _listener.RequestReceived += OnRequest;

        Console.WriteLine("Press any key to continue...");
Can you provide a sample?