asp自定义fckeditor上传文件的文件名
来源:互联网 发布:人工智能医疗概念股 编辑:程序博客网 时间:2024/05/17 05:50
上传文件时如果遇到中文就很麻烦,但又不能让用户自己把文件名改后再上传,所以直接把文件名自动生成了一下。
只需要在fckeditor/editor/filemanager/connectors/asp文件夹下的commands.asp修改一下即可
在这个文件中查找一下:FileUpload
会找到这个函数
把
Dim sFilePath
sFilePath = CombineLocalPaths(sServerDir, sFileName)
改为
Dim sFilePath,ranNum
Randomize
ranNum=int(90000*rnd)+10000
sFilePath = CombineLocalPaths(sServerDir, year(now)&month(now)&day(now)&hour(now)&minute(now)&second(now)&"."&sExtension)
即可
有问题?直接google!<script type="text/javascript"><!-- google_ad_client = "pub-0757178726455256"; google_ad_format = "js_sdo"; google_cts_mode ="rs"; google_num_cts = "2"; google_searchbox_width = 215; google_searchbox_height = 26; google_link_target = 2; google_logo_pos = "left"; google_rs_pos = "right"; google_ad_height = 35; google_ad_width = 760;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_sdo.js" type="text/javascript"></script>
<script type="text/javascript"><!--google_ad_client = "pub-0757178726455256";/* 728x90, 创建于 09-6-17 */google_ad_slot = "1633515232";google_ad_width = 728;google_ad_height = 90;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
- asp自定义fckeditor上传文件的文件名
- 自定义fckeditor上传的文件名
- FCKeditor是使用非常广泛的HTML编辑器,本文从 ASP.NET 的使用场景对 FCKeditor 与 FCKeditor.NET 的配置、功能扩展(如自定义文件上传子目录、自定义文件名、上传图片的后期处理等)、以及安全性进行初步的阐述。
- FCKeditor for Java 中文文件名文件上传乱码问题
- FCKEditor ConnectorSerlvet源码 自定义上传文件修改
- 自定义FCKeditor的图片上传功能
- asp fckeditor简单配置和上传设置,上传文件改名
- 获取上传文件的文件名~~
- 获取上传文件的文件名
- FCKeditor 上传修改,添加对文件的类型以及大小的限制(ASP.NET C#)
- ASP.NET FCKeditor 上传修改,添加对文件的类型以及大小的限制
- 解决asp.net中使用FckEditor上传文件,中文名称乱码的问题
- FCKeditor.NET 自定义上传目录和文件名 [本人亲自测试通过]
- 修改fckeditor的文件上传功能
- 单独使用fckeditor的文件上传功能
- FCKeditor.java+Struts2的上传文件配置
- 修改fckeditor的文件上传功能
- 借用 FCKEditor 的文件上传/管理界面
- html文件包含文件的几种方法
- 转载 Ext.extend用法(ext的继承)
- 在线播放器代码博客播放器代码大全
- UDP网络传输丢包分析
- 常用网页播放器代码
- asp自定义fckeditor上传文件的文件名
- Expert Oracle Database Architecture
- 嵌入式linux移植vsftpd服务器
- LAMP
- 40种网页常用小技巧--JavaScript
- 尼尔森:60%用户1个月后弃用Twitter
- 逐行处理数据时避免死循环
- ASP 中常见的错误 80004005 信息
- C#字符串的使用笔记