---
title: "改变FCKeditor 2.6 默认上传文件路径"
author: "tycomputer"
date: "2012-05-18T23:56:09Z"
tags: []
categories: ["Web前端"]
slug: "fckeditor-2-6"
draft: false
lastmod: "2012-05-18T23:56:09Z"
id: 1535083
url: "https://tycomputer.iteye.com/blog/1535083"
---

FCKeditor 上传文件默认是存放在 /userfiles 目录里，网上有很多解决办法，但用的FCKeditor都是比较旧的版本根本起不了作用，当前(2012-5月)最新版本是2.6，这里教大家改变默认上传路径的办法:
在WEB-INF/classes目录下建：fckeditor.properties，内容如下：


```java
connector.userActionImpl=net.fckeditor.requestcycle.impl.EnabledUserAction
connector.userFilesPath=/你的目录
connector.userFilesAbsolutePath=/你的目录
```