We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96a589d commit 1b1ff89Copy full SHA for 1b1ff89
lib/imageRouter/index.js
@@ -32,9 +32,9 @@ function checkImageValid (filepath) {
32
33
// upload image
34
imageRouter.post('/uploadimage', function (req, res) {
35
- var form = new formidable.IncomingForm()
36
-
37
- form.keepExtensions = true
+ var form = new formidable.IncomingForm({
+ keepExtensions: true
+ })
38
39
form.parse(req, function (err, fields, files) {
40
if (err || !files.image || !files.image.filepath) {
0 commit comments