2013年11月11日 星期一

CuteEditor 上傳中文檔名

CuteEditor 上傳中文檔名

File name not supported!  Please keep the file name one word with no spaces or special characters.

1. Edit security policy file.

CuteSoft_Client\CuteEditor\Configuration\Security\Default.config

<security name="filenamePattern">^[a-zA-Z0-9\._\s-\#]+$</security>

Please change it to:

<security name="filenamePattern">^[a-zA-Z0-9\._\s-\u4e00-\u9fa5]+$</security>

2. or Programmatically define the image name filter

C#: Page_Load
Editor1.Setting["security:filenamePattern"]= "^[a-zA-Z0-9\._\s-\u4e00-\u9fa5]+$";

沒有留言:

張貼留言