Permalink
Browse files

Merge pull request #2 from bradleyg/master

File extensions kept for uploaded files.
  • Loading branch information...
2 parents e018ad2 + f41e03c commit 206a37b3e6c0b34d537644eff00c38c5b345ea74 @twentyrogersc 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 206a37b

Please sign in to comment.