nginx上传文件不使用后台代码
就是不使用PHP Python 等后台处理 仅仅把文件传到指定目录里
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <html>
<head>
<title>Test upload</title>
</head>
<body>
<h2>Select files to upload</h2>
<form name= "upload" method= "POST" enctype= "multipart/form-data" action= "/upload" >
<input type= "file" name= "file1" ><br>
<input type= "file" name= "file2" ><br>
<input type= "file" name= "file3" ><br>
<input type= "file" name= "file4" ><br>
<input type= "file" name= "file5" ><br>
<input type= "file" name= "file6" ><br>
<input type= "submit" name= "submit" value= "Upload" >
<input type= "hidden" name= "test" value= "value" >
</form>
</body>
</html>
|
就是用这个一个简单的页面上传 然后nginx直接指定一个路径存起来就行 不再做后台处理