add upload file example.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							
								
								
									
										16
									
								
								examples/upload-file/single/public/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								examples/upload-file/single/public/index.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
			
		||||
<!doctype html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="utf-8">
 | 
			
		||||
    <title>Single file upload</title>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
<h1>Upload single file with fields</h1>
 | 
			
		||||
 | 
			
		||||
<form action="/upload" method="post" enctype="multipart/form-data">
 | 
			
		||||
    Name: <input type="text" name="name"><br>
 | 
			
		||||
    Email: <input type="email" name="email"><br>
 | 
			
		||||
    Files: <input type="file" name="file"><br><br>
 | 
			
		||||
    <input type="submit" value="Submit">
 | 
			
		||||
</form>
 | 
			
		||||
</body>
 | 
			
		||||
		Reference in New Issue
	
	Block a user