0

I want to upload a file which is being generated on my server conditionally in a directory, and I am using multer-s3 package to upload files to S3 service.

Is it possible to upload that generated file from server directory to S3 using multer-s3?

4

1 回答 1

0

不,不可能将生成的文件上传到s3using multer-s3,因为multer-s3库的设计和编写方式是为 提供替代存储引擎multer,而不是作为将文件上传到的库s3。您可以使用其他库将文件上传到s3,也可以在此处阅读https://github.com/badunk/multer-s3/blob/master/index.js#L172

于 2017-05-19T11:28:23.447 回答