apache - Failing to read files from Multipart File Post PhP 5.3.3 -
i have question. tough problem solved, still have question need answer to. here dilema:
we have 2 systems send data 1 another. 1 building whole post manually , sending our php aplication server runing on
php 5.3.3-7+squeeze15 suhosin-patch
and had big problem file posts lost between them.
when app sending data us:
post https://test.xxxxx.php authorization: basic xxxxxx content-type: multipart/form-data; boundary=---------------------------457c884a074995 -----------------------------457c884a074995 content-disposition: form-data; name="file"; filename="bulkcommand" content-type: text/xml <?xml version="1.0" encoding="utf-8"?> <interface> ----- </interface> -----------------------------457c884a074995 content-disposition: form-data; name=""; filename="interface-xml" content-type: text/xml <?xml version="1.0"?>--------</infrec01> -----------------------------457c884a074995--
we keppt on getting in $_files variable:
array ( [file] => array ( [name] => bulkcommand [type] => text/xml [tmp_name] => /tmp/phpljjs5n [error] => 0 [size] => 327 ) )
we figured oud name empty second file post, , eventyally worked post:
457c884a074995c9d9b4549d091f0373.httpreq post https://test.xxxxx.php authorization: basic xxxxx content-type: multipart/form-data; boundary=---------------------------457c884a074995 -----------------------------457c884a074995 content-disposition: form-data; name="file1"; filename="bulkcommand" content-type: text/xml <?xml version="1.0" encoding="utf-8"?> <interface> bunch of blablabla </interface> -----------------------------457c884a074995 content-disposition: form-data; name="file2"; filename="interface-xml" content-type: text/xml <?xml version="1.0"?><infrec01>******</infrec01> -----------------------------457c884a074995--
and 1 worked.
now question is, html representation damn name variable cause problems
Comments
Post a Comment