如何在3.1.6版的代码中使用Stradi Upload Plugin?

问题描述

在3.0.0-beta.18版本中,我使用了此代码

const buffers = await uploadService.bufferize(files.attachment);
  await uploadService.upload(buffers,config);

下载文件。现在我切换到3.1.6,此方法返回错误

===Error===
 TypeError: uploadService.bufferize is not a function 

我尝试使用streamToBuffer,但不起作用

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)