如果用的ftp上传,上传不会触发beforeAttachFile事件,你需要在beforeaddfile就控制
http://www.foxtable.com/webhelp/scr/2638.htm
http://www.foxtable.com/webhelp/scr/2699.htm
上传参考 http://www.foxtable.com/webhelp/scr/1410.htm
如果是本地或者共享文件夹的方式,直接参考 http://www.foxtable.com/webhelp/scr/2209.htm