sjxjjx / GCDWebServerDemo

使用GCDWebServer框架实现wifi局域网传输文件到iPhone的功能。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

上传文件报错

wangsaizzy opened this issue · comments

Forbidden: Failed uploading "测试图书.epub" to "/"
web界面显示上面的上传失败消息。

下面是代码日志打印:
[DEBUG] Did open connection on socket 8
[DEBUG] Did connect
[DEBUG] Did start background task
[DEBUG] Connection received 4129 bytes on socket 8
[DEBUG] Connection on socket 8 preflighting request "POST /upload" with 4129 bytes body
[DEBUG] Connection on socket 8 processing request "POST /upload" with 4129 bytes body
[DEBUG] Connection sent 167 bytes on socket 8
[DEBUG] Connection sent 210 bytes on socket 8
[DEBUG] Did close connection on socket 8
[VERBOSE] [192.168.1.115:80] 192.168.1.111:50788 403 "POST /upload" (4129 | 377)
[DEBUG] Did disconnect
[DEBUG] Did end background task

你检查是否设置了限制允许的文件类型,或者文件存放路径是否正确。