Sending binary data not working with apache + php now

here’s example form:

WWWForm form = new WWWForm();

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

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

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

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

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


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: