简体   繁体   English

文件上传错误 - 403 Forbidden

[英]File upload error - 403 Forbidden

I'm building an iPhone app using Titanium Mobile and using the HTTPClient.我正在使用 Titanium Mobile 和 HTTPClient 构建一个 iPhone 应用程序。 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.如果我发布到 postbin.org 或我的本地或临时服务器,那没关系。

I don't think the error is generated on the iPhone simulator.我不认为错误是在 iPhone 模拟器上生成的。 I think its a server setting or something.我认为它是服务器设置或其他东西。 I have an app written in CodeIgniter using the "upload" class.我有一个使用“上传”class 用 CodeIgniter 编写的应用程序。

<!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.这绝对看起来像 Apache mod_security 错误。 It is usually triggered by a Form submission (Get or Post).它通常由表单提交(Get 或 Post)触发。

Ask your server administrator to turn off the Apache mod_security module.请您的服务器管理员关闭 Apache mod_security 模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM