more than i content-disposition/form-data param
Closed this issue · 1 comments
netonevess commented
$content:
multipart/form-data; boundary=--------------------------288735829040928964800724
----------------------------288735829040928964800724
Content-Disposition: form-data; name="foo"
bar1
----------------------------288735829040928964800724
Content-Disposition: form-data; name="bar"
foo4
----------------------------288735829040928964800724--
Then:
$document = new Part($content);
in line 117 of file StreamedPart.php, I'v add a code to watch its results:
echo $key.'='.$value.PHP_EOL
terminal output:
Content-Type=multipart/form-data; boundary=--------------------------288735829040928964800724
----------------------------288735829040928964800724=
Content-Disposition=form-data; name="foo"
Content-Disposition=form-data; name="bar"
Array
(
[content-type] => multipart/form-data; boundary=--------------------------288735829040928964800724
[----------------------------288735829040928964800724] =>
[content-disposition] => form-data; name="foo"
)
bar param is out of list. It means that line 124 of original filie is not working well.
I've made some tests to solve that problem, but parseHeaderContent, and others functions does't accept array in their params.
I'll try to solve, but if you can do, please, help
att.: Álvaro Neves
netonevess commented
Solved: my $content should have a double line break after header line, it means:
Content-Type: multipart/form-data; boundary=--------------------------288735829040928964800724
----------------------------288735829040928964800724
Content-Disposition: form-data; name="foo"
bar1
----------------------------288735829040928964800724
Content-Disposition: form-data; name="bar"
foo4
----------------------------288735829040928964800724--