expressjs / expressjs/multer

How to get file contents before/after S3 upload?

Open
#771 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
12.1k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
21

Description

Hi,

I'm using multer-s3 as a middleware to automatically upload files to an S3 bucket.
However, I also need to get the file contents either before or after the S3 upload for further processing. I'd like to avoid downloading the file from S3 as it is supposed to be already in the server's memory.
Could not figure out how to get the file contents.

Any idea would be appreciated!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.