1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/vweb/file_upload/index.html
2021-11-10 18:26:16 +02:00

28 lines
700 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Test multipart/form-data file uploading</title>
</head>
<body>
<h2>File Upload</h2>
File form:
<form method="POST" enctype="multipart/form-data" action="/upload">
<input type="hidden" name="file_id" value="aafueB5Quie" />
<input type="file" name="upfile" multiple/>
<input type="hidden" name="another_hidden_field" value="abcxyz" />
<input type="submit" value="Upload"/>
</form>
Text form:
<form method="POST" enctype="multipart/form-data" action="/submit">
<input type="text" name="content1" value="abc" />
<input type="text" name="content2" value="xyz" />
<input type="submit" value="Submit content">
</form>
</body>
</html>