Permalink
Browse files

keep extensions for uploaded files

  • Loading branch information...
1 parent 70d14e8 commit f41e03c76910215e990caf64dbd109c4255aa13a @bradleyg bradleyg committed Jul 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 index.js
View
@@ -140,6 +140,8 @@ var parseForm = function(cb) {
}
var form = new formidable.IncomingForm()
+ form.keepExtensions = true
+
try { form.parse(req, parsed) }
catch(e) { parsed() }
}

0 comments on commit f41e03c

Please sign in to comment.