Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use ringo multi-form parser

  • Loading branch information...
commit 96885cfe629c5852bd7c502f9a5c2ca975b5c821 1 parent c2e366a
@kriszyp kriszyp authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 media/multipart-form-data.js
View
7 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){
Please sign in to comment.
Something went wrong with that request. Please try again.