先在插件中找到StandardFileManagerConnectorController文件。如下图: 在308行找到如下代码 def f = PathUtils.splitFilename(newName)if (FileUtils.isAllowed(f.ext, type)) { 插入如下代码 SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmssSSSS"); newName = formatter.format(new Date())+"."+f.ext; 最终效果是这样的: if (FileUtils.isAllowed(f.ext, type)) { SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmssSSSS"); newName = formatter.format(new Date())+"."+f.ext; def fileToSave = new File(finalDir, newName)if ( !overwrite ) {def idx = 1while (fileToSave.exists()) {errorNo = this.ERROR_FILE_RENAMEDnewName = "${f.name}(${idx}).${f.ext}"fileToSave = new File(finalDir, newName)idx++}}file.transferTo(fileToSave)}else {errorNo = this.ERROR_INVALID_FILE_TYPEerrorMsg = "INVALID FILE TYPE"}