在 Node.js 18 中 formUploader.put 并发上传导致的内存泄露警告?
使用formUploader.put 方法并发上传多个文件,会提示内存可能泄露,监听器过多,超过11个默认值。MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
508 阅读
在上传时可以执行所有的fop操作,其中对图片缩略是其中的一种。我过我们客户的一般用法是 “在原图的外链后添加不同的样式,进行各种处理”。 具体可以参考:
http://developer.qiniu.com/docs/v6/api/reference/fop/image/imageview.html
http://developer.qiniu.com/docs/v6/api/overview/fop/style.html
如果你还是想上传的时候直接处理可以参考:
http://developer.qiniu.com/docs/v6/api/reference/security/put-policy.html