zoukankan      html  css  js  c++  java
  • 修改ckeditor/ckfinder上传文件文件夹 路径以日期格式命名

    修改/ckfinder/config.ascx文件:

    string dateDir = DateTime.Today.ToString("yyyyMM/");

    ResourceType type;
    type = ResourceType.Add( "Files" );
    type.Url = BaseUrl + "files/" + dateDir;
    type.Dir = BaseDir == "" ? "" : BaseDir + "files/" + dateDir;
    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" };
    type.DeniedExtensions = new string[] { };

    type = ResourceType.Add( "Images" );
    type.Url = BaseUrl + "images/" + dateDir;
    type.Dir = BaseDir == "" ? "" : BaseDir + "images/" + dateDir;
    type.MaxSize = 0;
    type.AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
    type.DeniedExtensions = new string[] { };

    type = ResourceType.Add( "Flash" );
    type.Url = BaseUrl + "flash/" + dateDir;
    type.Dir = BaseDir == "" ? "" : BaseDir + "flash/" + dateDir;
    type.MaxSize = 0;
    type.AllowedExtensions = new string[] { "swf", "flv" };
    type.DeniedExtensions = new string[] { };

  • 相关阅读:
    Kafka架构
    MapReduce执行流程解析
    ZooKeeper选举机制
    Zookeeper全局一致性
    HDFS的快照
    在CentOS 6.5上安装NodeJS
    Node v0.12.5 稳定版发布
    CentOS6.5手动升级gcc4.8.2
    centos6 yum 安装 install c++4.8 gcc4.8
    Linux CentOS6系统安装最新版本Node.js环境及相关文件配置
  • 原文地址:https://www.cnblogs.com/slwangzi/p/5398925.html
Copyright © 2011-2022 走看看