File upload error - 403 Forbidden

回眸只為那壹抹淺笑 提交于 2019-12-13 21:21:25

问题


I'm building an iPhone app using Titanium Mobile and using the HTTPClient. Whenever I post files to production server I get the following response. If I post to postbin.org or my local or staging servers it's okay.

I don't think the error is generated on the iPhone simulator. I think its a server setting or something. I have an app written in CodeIgniter using the "upload" class.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>403 Forbidden</title>

</head><body>

<h1>Forbidden</h1>

<p>You don't have permission to access {my_uri} on this server.</p>

</body></html>

回答1:


This definitely looks like an Apache mod_security error. It is usually triggered by a Form submission (Get or Post).

Ask your server administrator to turn off the Apache mod_security module.



来源:https://stackoverflow.com/questions/7007971/file-upload-error-403-forbidden

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!