AddBinaryField always missing bytes in UnityWebRequest Post on iOS
Unity 2019.1.9 and .12
I'm posting a WWWForm with several AddField text fields that get sent properly and also an AddBinaryField containing the bytes for an EncodeToPng image. The image arrives on the server always with missing bytes. This issue seems to only occur on iOS device and works fine in editor.
The image file bytes are saved to the iOS device photo album properly. The file size comparison for this "ground truth" image vs the one saved on server varies depending on which UnityWebRequest properties are marked explicitly as false.
With both
.chunkedTransferand.useHttpContinueset to false, the file uploaded is only 838 bytes smaller.With no options like that set, 814 bytes smaller.
With
.useHttpContinueset to false, 778 bytes smaller.
Your answer