]> gitweb.factorcode.org Git - factor.git/commitdiff
use the form element name as key, not the filename
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 26 Jan 2009 21:49:38 +0000 (15:49 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 26 Jan 2009 21:49:38 +0000 (15:49 -0600)
basis/mime/multipart/multipart-tests.factor
basis/mime/multipart/multipart.factor

index f4156fac9e848dd0de90b7b102ddb90376764e9e..b6d76c328a3295e6acb8d486fd6caee5d69f4c32 100644 (file)
@@ -20,7 +20,7 @@ IN: mime.multipart.tests
 
 [ t ] [
     mime-test-stream [ upload-separator parse-multipart ] with-input-stream
-    "\"up.txt\"" swap key?
+    "\"file1\"" swap key?
 ] unit-test
 
 [ t ] [
index 1b5ce74620592faf7e2386d6b121b12134dfddaf..b25c78c198c953dfe5224b3ab2783ca67c3d1c9e 100755 (executable)
@@ -84,7 +84,7 @@ ERROR: end-of-stream multipart ;
         drop
     ] [
         [ [ header>> ] [ filename>> ] [ temp-file>> ] tri mime-file boa ]
-        [ filename>> ]
+        [ content-disposition>> "name" swap at ]
         [ mime-parts>> set-at ] tri
     ] if ;