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?