| 1 |
<html> |
| 2 |
<head> |
| 3 |
<meta charset=utf-8 http-equiv="Content-Language" content="en"/> |
| 4 |
</head> |
| 5 |
<body> |
| 6 |
<img src="libwebsockets.org-logo.svg"> |
| 7 |
<img src="strict-csp.svg"><br> |
| 8 |
|
| 9 |
Hello from the <b>minimal http form POST file example</b>. |
| 10 |
<p> |
| 11 |
This is a static page served from ./mount-origin/index.html. |
| 12 |
<p> |
| 13 |
When you POST the form below, you will see the values of the<br> |
| 14 |
form parameters reported on the console log, and the file will |
| 15 |
be uploaded and saved in the current working directory. |
| 16 |
<p> |
| 17 |
<form name=multipart action="/form1" method="post" enctype="multipart/form-data"> |
| 18 |
Type some text:<br> |
| 19 |
<input type="text" name="text1"><br> |
| 20 |
<br> |
| 21 |
Select a file to upload: |
| 22 |
<input type="file" name="file" id="file" size="20"> |
| 23 |
<span id=file_info style="font-size:12pt;"></span><br> |
| 24 |
<br> |
| 25 |
<input type="submit" name="send" value="Submit"> |
| 26 |
</form> |
| 27 |
</body> |
| 28 |
</html> |
| 29 |
|