Permalink
Browse files

Use ringo multi-form parser

  • Loading branch information...
1 parent c2e366a commit 96885cfe629c5852bd7c502f9a5c2ca975b5c821 @kriszyp kriszyp committed Nov 7, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 media/multipart-form-data.js
@@ -11,7 +11,12 @@ var stringToValue = require("./auto-type").stringToValue,
var parseMultipart = typeof process == "undefined" ?
// jack form parser
- require("jack/lib/jack/utils").parseMultipart :
+ (function(httpUtil){
+ return function(request){
+ var parsed = httpUtil.parseFileUpload(request);
+ return parsed;
+ };
+ })(require("ringo/utils/http")) :
// node form parser
(function(IncomingForm, Node){
return function(request){

0 comments on commit 96885cf

Please sign in to comment.