2021-11-10 17:15:39 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Test multipart/form-data file uploading</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2021-01-21 11:08:51 +01:00
|
|
|
<h2>File Upload</h2>
|
|
|
|
|
2021-11-10 16:31:41 +01:00
|
|
|
File form:
|
2021-01-21 11:08:51 +01:00
|
|
|
<form method="POST" enctype="multipart/form-data" action="/upload">
|
2021-11-10 16:31:41 +01:00
|
|
|
<input type="hidden" name="file_id" value="aafueB5Quie" />
|
|
|
|
<input type="file" name="upfile" multiple/>
|
2021-11-10 17:26:16 +01:00
|
|
|
<input type="hidden" name="another_hidden_field" value="abcxyz" />
|
2021-11-10 16:31:41 +01:00
|
|
|
<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">
|
2021-01-21 11:08:51 +01:00
|
|
|
</form>
|
2021-11-10 17:15:39 +01:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|