質問編集履歴
1
Unity側のソースコードが不十分だったので追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,11 +64,17 @@
|
|
64
64
|
|
65
65
|
```C#
|
66
66
|
|
67
|
-
WWWForm form = new WWWForm
|
67
|
+
WWWForm form = new WWWForm;
|
68
68
|
|
69
|
-
form.AddBinaryData("testimage", data, null, null)
|
69
|
+
form.AddBinaryData("testimage", data, null, null);
|
70
70
|
|
71
|
-
UnityWebRequest.Post(url,form)
|
71
|
+
uging(UnityWebRequest www = UnityWebRequest.Post(url,form)) {
|
72
|
+
|
73
|
+
www.SetRequestHeader("Content-Type", "application/json");
|
74
|
+
|
75
|
+
yirld return www.Send();
|
76
|
+
|
77
|
+
}
|
72
78
|
|
73
79
|
```
|
74
80
|
|