全局干预上传下载流文件原创
金蝶云社区-开发者赋能部_吴富彪
开发者赋能部_吴富彪
1人赞赏了该文章 546次浏览 未经作者许可,禁止转载编辑于2022年08月02日 09:40:56

操作步骤

1、创建java类继承 FilePathService,重写上传encode、下载decode方法,添加自己的处理逻辑。比如加水印

image.png

2、配置MC参数:值为步骤1中创建的java类路径

苍穹版本5.0之后: 

custom.fileservice.ext.impl.classname 

custom.image.fileservice.ext.impl.classname 

苍穹版本5.0之前: 

fileservice.ext.impl.classname 

image.fileservice.ext.impl.classname

image.png

3、保存配置项,并发布集群

image.png

赞 1