FCKeditor 2.6 上传发送到服务器有问题

wlsugar110 2009-10-11 05:20:09
为什么我在上传(图片、flash等)都会出现下面图片的状况,图片能上传上去,不过就是无法自动跳转
...全文
240 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
一路奔跑1314 2011-07-10
  • 打赏
  • 举报
回复
这个帖子有能解决的吗?
wlsugar110 2009-10-12
  • 打赏
  • 举报
回复
这也应该不是权限的问题!这是点击“发送到服务器上”时出现的情况!一直在停留在这个页面,要是把夜歌页面关闭,在“浏览服务器”里面会看到文件其实已经上传上去了
liaoyukun111 2009-10-12
  • 打赏
  • 举报
回复
服务商是否给放图片的文件夹,给了对应权限,如:添加文件
wlsugar110 2009-10-12
  • 打赏
  • 举报
回复
我之前一直用的是2.3版本的,但升成2.6版本后就出现这用情况,下面我把我主要设置与调用代码贴出来,希望高手帮忙解决一下,先谢谢了!
我的Web.config主要设置:
<pages enableEventValidation="false" viewStateEncryptionMode="Never" validateRequest="false">
<controls>
<add tagPrefix="wlsugar" namespace="FredCK.FCKeditorV2" assembly="FredCK.FCKeditorV2"/>
</controls>
</pages>
我的aspx页面调用设置:
<wlsugar:FCKeditor id="ArticleNote" runat="server" Width="100%" Height="450px">
</wlsugar:FCKeditor>
我的FCKeditor\editor\fckconfig.js主要设置:
var _FileBrowserLanguage = 'aspx' ;
var _QuickUploadLanguage = 'aspx' ;
我的上传设置文件FCKeditor\editor\filemanager\connectors\aspx\config.ascx代码:
public override void SetConfig()
{
// SECURITY: You must explicitly enable this "connector". (Set it to "true").
Enabled = CheckAuthentication();

// URL path to user files.
UserFilesPath = "/userfiles/";

// The connector tries to resolve the above UserFilesPath automatically.
// Use the following setting it you prefer to explicitely specify the
// absolute path. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' URL must point to the same directory.
UserFilesAbsolutePath = "";

// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
ForceSingleExtension = true;

// Allowed Resource Types
AllowedTypes = new string[] { "File", "Image", "Flash", "Media" };

// For security, HTML is allowed in the first Kb of data for files having the
// following extensions only.
HtmlExtensions = new string[] { "html", "htm", "xml", "xsd", "txt", "js" };

TypeConfig[ "File" ].AllowedExtensions = new string[] { "7z", "aiff", "asf", "avi", "bmp", "csv", "doc", "fla", "flv", "gif", "gz", "gzip", "jpeg", "jpg", "mid", "mov", "mp3", "mp4", "mpc", "mpeg", "mpg", "ods", "odt", "pdf", "png", "ppt", "pxd", "qt", "ram", "rar", "rm", "rmi", "rmvb", "rtf", "sdc", "sitd", "swf", "sxc", "sxw", "tar", "tgz", "tif", "tiff", "txt", "vsd", "wav", "wma", "wmv", "xls", "xml", "zip" };
TypeConfig[ "File" ].DeniedExtensions = new string[] { };
TypeConfig[ "File" ].FilesPath = "%UserFilesPath%file/";
TypeConfig[ "File" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%file/" );
TypeConfig["File"].QuickUploadPath = "%UserFilesPath%file/";
TypeConfig[ "File" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );


TypeConfig[ "Image" ].AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
TypeConfig[ "Image" ].DeniedExtensions = new string[] { };
TypeConfig[ "Image" ].FilesPath = "%UserFilesPath%image/";
TypeConfig[ "Image" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%image/" );
TypeConfig["Image"].QuickUploadPath = "%UserFilesPath%image/";
TypeConfig[ "Image" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );

TypeConfig[ "Flash" ].AllowedExtensions = new string[] { "swf", "flv" };
TypeConfig[ "Flash" ].DeniedExtensions = new string[] { };
TypeConfig[ "Flash" ].FilesPath = "%UserFilesPath%flash/";
TypeConfig[ "Flash" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%flash/" );
TypeConfig["Flash"].QuickUploadPath = "%UserFilesPath%flash/";
TypeConfig[ "Flash" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );

TypeConfig[ "Media" ].AllowedExtensions = new string[] { "aiff", "asf", "avi", "bmp", "fla", "flv", "gif", "jpeg", "jpg", "mid", "mov", "mp3", "mp4", "mpc", "mpeg", "mpg", "png", "qt", "ram", "rm", "rmi", "rmvb", "swf", "tif", "tiff", "wav", "wma", "wmv" };
TypeConfig[ "Media" ].DeniedExtensions = new string[] { };
TypeConfig[ "Media" ].FilesPath = "%UserFilesPath%media/";
TypeConfig[ "Media" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%media/" );
TypeConfig["Media"].QuickUploadPath = "%UserFilesPath%media/";
TypeConfig[ "Media" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );
}
  • 打赏
  • 举报
回复
对,先看看路径……不知道你的配置文件是否正确配置……我做过这个,没有问题的……
wuyq11 2009-10-11
  • 打赏
  • 举报
回复
路径配置是否正确
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<FCKeditorV2:FCKeditor id="txtContent" runat="server" Width="100%" Height="200px"></FCKeditorV2:FCKeditor></td>
狼王_ 2009-10-11
  • 打赏
  • 举报
回复
顶一下

111,125

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧