1d4afb5ceSopenharmony_ci# lws minimal http server form POST file
2d4afb5ceSopenharmony_ci
3d4afb5ceSopenharmony_ci## build
4d4afb5ceSopenharmony_ci
5d4afb5ceSopenharmony_ci```
6d4afb5ceSopenharmony_ci $ cmake . && make
7d4afb5ceSopenharmony_ci```
8d4afb5ceSopenharmony_ci
9d4afb5ceSopenharmony_ci## usage
10d4afb5ceSopenharmony_ci
11d4afb5ceSopenharmony_ci```
12d4afb5ceSopenharmony_ci $ ./lws-minimal-http-server-form-post-file
13d4afb5ceSopenharmony_ci[2018/03/29 09:58:30:8800] USER: LWS minimal http server POST file | visit http://localhost:7681
14d4afb5ceSopenharmony_ci[2018/03/29 09:58:30:8800] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off
15d4afb5ceSopenharmony_ci[2018/03/29 09:58:45:3284] USER: file_upload_cb: upload done, written 2729 to wss-over-h2.png
16d4afb5ceSopenharmony_ci[2018/03/29 09:58:45:3284] USER: text1: (len 3) 'xxx'
17d4afb5ceSopenharmony_ci[2018/03/29 09:58:45:3284] USER: send: (len 6) 'Submit'
18d4afb5ceSopenharmony_ci```
19d4afb5ceSopenharmony_ci
20d4afb5ceSopenharmony_ciVisit http://localhost:7681, select a file to upload and submit the form.
21d4afb5ceSopenharmony_ci
22d4afb5ceSopenharmony_ciThe file is uploaded and saved in the cwd, the form parameters are dumped to the log and
23d4afb5ceSopenharmony_ciyou are redirected to a different page.
24