[Libwebsockets] File Upload using libwesockets?

Andy Green andy at warmcat.com
Sun Jun 19 00:45:33 CEST 2016



On June 19, 2016 6:20:39 AM GMT+08:00, Shmuel Weiss <sweiss at kramerel.com> wrote:
>Hi All,
>
>Is there somewhere an example on how to handle File Upload using
>libwebsockets ?

Yes, but you need to use master branch.

The public server is running it, you can try it here

https://libwebsockets.org/testserver/

navigate to the POST tab.

The corresponding code that does the POST form handling and file upload is here

https://github.com/warmcat/libwebsockets/blob/master/plugins/protocol_post_demo.c

-Andy

>Thanks in advance
>
>Shmulito
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
>http://libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list