Sending binary data not working with apache + php now

here’s example form:

WWWForm form = new WWWForm();
form.AddField("foo","bar");
form.AddField("baz","bad");

//image_data is the screenshot in png format
form.AddBinaryData("image", image_data ) ;

and i’m getting this jumbled array in $_POST data:

Array
(
 [
--j9WOVWjhzifMBMOxK4Gcn4HcAYobnKmq3WyCjNiJ
Content-Type:_text/plain;_charset] => "utf-8"
Content-disposition: form-data; name="foo"

bar
--j9WOVWjhzifMBMOxK4Gcn4HcAYobnKmq3WyCjNiJ
Content-Type: text/plain; charset="utf-8"
Content-disposition: form-data; name="baz"

bad
009480823dc102f6f612ffb2c0e5fb79647c60a950c0c84c430f43c72869c0aa
--j9WOVWjhzifMBMOxK4Gcn4HcAYobnKmq3WyCjNiJ
Content-Type: image/png
Content-disposition: form-data; name="map_image"; filename="map_image.png"

\x89PNG
\x1a

any ideas?

actually upgrading to unity 4.1.3 seem to make the issue go away. and make sure you have the right header for content type. :slight_smile:
(actually not specifying header works as well)

Content type is text/json. I have tried everything else, even not specifying a header hashtable at all, I still cannot get this to work.

The thing is it works on the non-apache server, so it has to be something server related. I tried speaking to the hosting support with no luck :frowning: