文件上传错误 - 403禁止 [英] File upload error - 403 Forbidden

查看:1642
本文介绍了文件上传错误 - 403禁止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立使用钛移动的iPhone应用程序,并使用HttpClient的。每当我发布文件到生产服务器,我得到以下响应。如果我发布到postbin.org或我的本地或临时服务器也没关系。

我不认为在iPhone模拟器生成错误。我认为它的服务器设置或东西。我使用上传级写成codeIgniter的应用程序。

 <!DOCTYPE HTML PUBLIC -  // IETF // DTD HTML 2.0 // ENGT&;< HTML和GT;< HEAD><标题> 403禁止< /标题>< /头><身体GT;< H1>严禁< / H1>< P>您没有权限访问{} my_uri此服务器针对< / P>< /身体GT;< / HTML>


解决方案

这肯定看起来像一个Apache mod_security的错误。它通常是由一个表单提交(GET或POST)触发。

询问您的服务器管理员关闭了Apache的mod_security模块。

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>

解决方案

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.

这篇关于文件上传错误 - 403禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆