以前,我使用AFNetworking POST方法将“ base64imagestring”保存在服务器上,并且工作正常,但是从最近几天开始,我遇到了一些问题。我没有更改请求代码中的任何内容,但无法在服务器上上传base64imagestring。
Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set., NSUnderlyingError=0x281f25170 {Error Domain= example.com Code=-1011 "Request failed: unacceptable (406)" UserInfo=<NSHTTPURLResponse: 0x2811e4be0> { URL: http://example.com/Api/image_save.php } { Status Code: 406, Headers {
Connection = (
"Keep-Alive"
);
"Content-Length" = (
226
);
"Content-Type" = (
"text/html; charset=iso-8859-1"
);
Date = (
"Wed, 29 May 2019 07:11:52 GMT"
);
"Keep-Alive" = (
"timeout=5, max=75"
);
Server = (
Apache
);
} }}}}