Closed manuelfink closed 3 years ago
Actually, the file is never locally cached, it's streamed directly to S3. I would recommend looking into https://github.com/expressjs/multer/pull/399 which exposes another api that just gives you a ReadableStream
per file. You could then pass this stream thru a hash-calculator, and then later on to S3...
My recommendation would be to use Multer 3.x.
Since Multer-S3 streams the file directly we cannot really solve this here...
Just being curious, is it anyhow possible to hook into multer-s3 before upload and access the locally cached file?
What I like to to:
I really appreciate your help to get a quick dive into multer and multer-s3!