小编Joh*_*522的帖子

swift 4中的URLSession,用于从iOS库中上传jpeg文件,生成错误

我正在尝试将我的图像从iPhone库上传到我在PHP上运行的Web服务器.对于上传请求,我使用URLSession并从iPhone Gallery UIImagePicker中选择图像.

我从iPhone 7和iPhone模拟器中收到此错误.

来自控制台的错误代码在这里

2018-06-19 12:06:56.076335+0200 google01[4054:1274269] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-06-19 12:06:56.077701+0200 google01[4054:1274269] [MC] Reading from public effective user settings.
2018-06-19 12:06:56.077701+0200 google01[4054:1274269] [MC] Reading from public effective user settings.
2018-06-19 12:07:00.633120+0200 google01[4054:1274376] [BoringSSL] Function boringssl_session_errorlog: line 2878 [boringssl_session_write] SSL_ERROR_SYSCALL(5): operation failed externally to the library
2018-06-19 12:07:00.644399+0200 google01[4054:1274552] [discovery] errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
2018-06-19 12:07:00.668971+0200 google01[4054:1274376] [BoringSSL] Function boringssl_session_errorlog: line 2878 [boringssl_session_write] SSL_ERROR_SYSCALL(5): …
Run Code Online (Sandbox Code Playgroud)

image-uploading uiimagepickercontroller ios urlsession swift4

8
推荐指数
0
解决办法
2143
查看次数