File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ app.listen(3000);
67
67
[ form.html] ( ../examples/2016.11.07-advanced-express-multer/upload-single/form.html ) 。
68
68
69
69
``` html
70
- <form action =" /upload-single " method =" post" enctype =" multipart/form-data" >
70
+ <form action =" /upload" method =" post" enctype =" multipart/form-data" >
71
71
<h2 >单图上传</h2 >
72
72
<input type =" file" name =" logo" >
73
73
<input type =" submit" value =" 提交" >
@@ -119,7 +119,7 @@ app.listen(3000);
119
119
120
120
121
121
``` html
122
- <form action =" /upload-multi " method =" post" enctype =" multipart/form-data" >
122
+ <form action =" /upload" method =" post" enctype =" multipart/form-data" >
123
123
<h2 >多图上传</h2 >
124
124
<input type =" file" name =" logos" >
125
125
<input type =" file" name =" logos" >
@@ -199,7 +199,7 @@ app.listen(3000);
199
199
200
200
非常简单,比如我们想将文件上传到 my-upload 目录下,修改下 dest 配置项就行。
201
201
202
- ```
202
+ ``` javascript
203
203
var upload = multer ({ dest: ' upload/' });
204
204
```
205
205
@@ -218,7 +218,7 @@ var upload = multer({ dest: 'upload/' });
218
218
219
219
[ app.js] ( ../examples/2016.11.07-advanced-express-multer/upload-custom-filename/app.js ) 。
220
220
221
- ```
221
+ ``` javascript
222
222
var fs = require (' fs' );
223
223
var express = require (' express' );
224
224
var multer = require (' multer' )
You can’t perform that action at this time.
0 commit comments