---
title: "FCK 上传没有权限security error：You probably don't have enough permissions to upload"
author: "wangleide414"
date: "2012-12-09T18:32:00Z"
tags: []
categories: ["编程语言"]
slug: "fck-security-error-you-probably-don-t-have-enough-permissions-to-upload"
draft: false
lastmod: "2012-12-09T18:32:00Z"
id: 1744577
url: "https://wangleide414.iteye.com/blog/1744577"
---

最近在jsp中使用FCK做内容管理，突然发现上传图片和flash时报错：

Security error：You probably don't have enough permissions to upload .Please check your server

没有权限。

在网上搜索了很久，查询到诸多的解决办法，修改io.php、fckconfig.js等等。都试过了，但是仍然没有解决。在检查配置文件时，已没有发现哪里有配置错误。最后发现在配置中有这么一项配置：

Xml代码  [![收藏代码](http://ychw668.iteye.com/images/icon_star.png)]()

1. &lt;init-param&gt;
2. &lt;param-name&gt;debug&lt;/param-name&gt;
3. &lt;param-value&gt;false&lt;/param-value&gt;
4. &lt;/init-param&gt;

 

将debug设置为true，打印出错误调试信息。重启一下服务，这时错误就打印出来了。原来我配置的baseDir

Java代码  [![收藏代码](http://ychw668.iteye.com/images/icon_star.png)]()

1. &lt;init-param&gt;
2. &lt;param-name&gt;baseDir&lt;/param-name&gt;
3. &lt;param-value&gt;/resources/upload/UserFiles/&lt;/param-value&gt;
4. &lt;/init-param&gt;

 在resources/upload/UserFiles/路径下没有建立相应的子目录，如文件目录：resources/upload/UserFiles/File；图片目录：resources/upload/UserFiles/Image；falsh目录：resources/upload/UserFiles/Flash。

OK，问题解决了。

随笔给大家分享一下，告知一下像我这样的大老粗，哈哈。