首页 养生问答 疾病百科 养生资讯 女性养生 男性养生

FCK 上传图片问题

发布网友 发布时间:2022-04-24 14:37

我来回答

4个回答

热心网友 时间:2023-10-16 18:11

这个问题确实难搞~我现在在做的项目也用到了。解决办法是在fckconfig.js里面改下那个_FileBrowserLanguage和_QuickUploadLanguage,值都为action,然后后面修改:
FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath+'upload.' + _QuickUploadExtension ;
//FCKConfig.LinkUploadURL = FCKConfig.BasePath + '/fckeditor/simpleuploader?Type=File' ;
FCKConfig.LinkUploadAllowedExtensions = ".(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)$" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one

FCKConfig.ImageUpload = true ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath+'upload.' + _QuickUploadExtension + '?type=Image' ;
//FCKConfig.ImageUploadURL = FCKConfig.BasePath + '/fckeditor/simpleuploader?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one

FCKConfig.FlashUpload = true ;
//FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Flash' ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath+'upload.' + _QuickUploadExtension + '?type=Flash';
FCKConfig.FlashUploadAllowedExtensions = ".(swf|flv)$" ; // empty for all
FCKConfig.FlashUploadDeniedExtensions = "" ;

那个uploadAction是自己添加的处理Action

热心网友 时间:2023-10-16 18:11

看看你写的服务器端是不是漏掉返回值了

热心网友 时间:2023-10-16 18:12

你的服务器没有给fck写入的权限

热心网友 时间:2023-10-16 18:12

是在java里用的吗?

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com