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