jczic / MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
https://github.com/jczic/MicroWebSrv
MIT License
645 stars 116 forks source link

Handle file uploads? #52

Closed antonvh closed 5 years ago

antonvh commented 5 years ago

From the readme and I can not deduce how to write a file upload handler with microwebsrv.

I currently use python3/tornado where I go:

class UploadHandler(tornado.web.RequestHandler):
    def post(self):
        if 'file_0' in self.request.files:

etc.

I want to move to micropython for this web app. How do I do that?

jczic commented 5 years ago

Hi, no, MicroWebSrv doesn't integrate files POST with forms data for the moment.

jczic commented 4 years ago

Hello,

I released a fully new version (v2.0) of my web server here : github.com/jczic/MicroWebSrv2. Open source MIT, fully asynchronous, more robust, more fast and more efficient! It is delivered with a good documentation.

Thank you for your support and feedback. ☺️

Jean-Christophe Bos

Le lun. 18 févr. 2019 à 17:55, Anton Vanhoucke notifications@github.com a écrit :

From the readme and I can not deduce how to write a file upload handler with microwebsrv.

I currently use python3/tornado where I go:

class UploadHandler(tornado.web.RequestHandler): def post(self): if 'file_0' in self.request.files:

etc.

I want to move to micropython for this web app. How do I do that?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/52, or mute the thread https://github.com/notifications/unsubscribe-auth/AAegLNJ5tF_PooIktTBf1np4Bapvlzskks5vOtr-gaJpZM4bBRfZ .

--

Sincèrement,