Closed programsam closed 3 years ago
Found at one point a post where someone did a streaming submit from a received upload to S3.
MulterS3 seems to do it? https://www.npmjs.com/package/multer-s3
Or just Google “express s3 streaming file upload”
Was impossible to do without using the AWS SDK for Javascript v2. Couldn't make the streams work from multer even with a custom storage handler avoiding multer-s3
entirely. So I just used the local storage. It uploads to a temporary directory and then S3 SDK uploads it from there. It's pretty quick; I tested it.
Anyway, this is DONE.
Investigation pertaining where to put the connection to S3. Do we use an in-browser client that gets provided with the keys, or do we write our own Ajax client that sends to the server, who sends to S3?
Server side
Client