我已选中http://ckeditor.com/demo#full。通过ckeditor上传不同的文件
但我找不到任何选项来通过ckeditor上传.exe文件。
我可以通过这个编辑器上传.exe文件吗?如果是的话,我该怎么做?
请建议。
我已选中http://ckeditor.com/demo#full。通过ckeditor上传不同的文件
但我找不到任何选项来通过ckeditor上传.exe文件。
我可以通过这个编辑器上传.exe文件吗?如果是的话,我该怎么做?
请建议。
使用链接按钮,选择上传选项卡,选择您的文件,按它发送到服务器按钮上传。如果上传失败,则会出现服务器端过滤器,并且无法使用这些扩展名上传文件。
在Asp.net 您可以在CKFinder文件夹的config.ascx中添加扩展名。 我与 之上有同样的问题,我已通过在此文件中添加文件扩展来解决了我的问题。 我在此文件中的代码是
DefaultResourceTypes =“”;
ResourceType type;
type = ResourceType.Add("Files");
type.Url = BaseUrl + "files/";
type.Dir = BaseDir == "" ? "" : BaseDir + "files/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "7z", "aiff", "asf", "avi", "bmp", "csv", "doc", "docx", "fla", "flv", "gif", "gz", "gzip", "jpeg", "jpg", "mid", "mov", "mp3", "mp4", "mpc", "mpeg", "mpg", "ods", "odt", "pdf", "png", "ppt", "pptx", "pxd", "qt", "ram", "rar", "rm", "rmi", "rmvb", "rtf", "sdc", "sitd", "swf", "sxc", "sxw", "tar", "tgz", "tif", "tiff", "txt", "vsd", "wav", "wma", "wmv", "xls", "xlsx", "zip","inp","html" };
type.DeniedExtensions = new string[] { };
type = ResourceType.Add("Images");
type.Url = BaseUrl + "images/";
type.Dir = BaseDir == "" ? "" : BaseDir + "images/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
type.DeniedExtensions = new string[] { };
type = ResourceType.Add("Flash");
type.Url = BaseUrl + "flash/";
type.Dir = BaseDir == "" ? "" : BaseDir + "flash/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "swf", "flv", "mp4" , "mp3"};
type.DeniedExtensions = new string[] { };
最好的运气它的工作...
它的工作原理完全一样伊万描述。 –
我试过这个,但是我得到一个错误“无效的文件扩展名” – user2346003
比你不能上传可执行文件,你想上传一些漏洞吗?如果你只需要上传文件,将其压缩成zip或7z格式。 –