直接从express fileupload将图像上载到firebase存储

直接从express fileupload将图像上载到firebase存储,firebase,file-upload,firebase-storage,Firebase,File Upload,Firebase Storage,我正在尝试将通过express fileupload获得的图像直接上传到firebase存储。我目前的做法是首先从express fileupload保存图像,然后将其上载到firebase存储,然后将其删除。 有没有办法直接将express fileupload包的结果传递到firebase存储,这样我就不必在本地保存文件了?我自己找到了解决方案。。。 express fileupload file类提供了一个“data”属性,该属性可以简单地传递到storage.upload(“name.p

我正在尝试将通过
express fileupload
获得的图像直接上传到firebase存储。我目前的做法是首先从express fileupload保存图像,然后将其上载到firebase存储,然后将其删除。
有没有办法直接将
express fileupload
包的结果传递到firebase存储,这样我就不必在本地保存文件了?

我自己找到了解决方案。。。
express fileupload file类提供了一个“data”属性,该属性可以简单地传递到storage.upload(“name.png”,file.data)

在哪里使用
express fileupload执行业务逻辑?在你的一个Node.js服务器中?我建议编辑这个问题,以显示你现在拥有的代码,但它不能以你想要的方式工作。