Questions related to streaming multer storage engine for AWS S3.
Questions tagged [multer-s3]
210 questions
2
votes
1 answer
How to upload multiple files with multer-s3 in Nodejs
I am trying to upload multiple images with Nodejs, Expressjs and Multer-s3, but it's not working.
I have a model called Program and the Program model has an array image attribute but when I try to upload multiple images my req.file returns…

Chukwuma Kingsley
- 497
- 8
- 20
2
votes
1 answer
Multer returns req.file as undefined, and req.file.location as location undefined while uploading file to aws bucket
I am trying to upload images to s3 Bucket. And have tried many solutions online yet I get the above errors. I don't want to store images locally, instead I want to upload them directly to s3 bucket. Any help would be appreciated.
This is Upload.js…

Aditya Rathi
- 49
- 7
2
votes
1 answer
Can't upload file with Multer, React Native and Axios
I know there are thousands of questions like this, but none of the solutions works for me:
Change to Fetch Api
Use format {uri: ..., type: ..., name: ...} in formData
I also have noticed that I can't send the formData directly in the "data"…

Rodrigo Corvera Díaz
- 43
- 1
- 4
2
votes
0 answers
uploading large video files to s3 with express.js
i'm uploading media files to s3 with express and multer-s3. it's working fine if i upload files less than 10 mb.
if i upload larger than 7mb( i tested for. if i upload around 30mb it'll fail), it gives error.cannot determine length of string
I'm…

Gouri Shankar
- 129
- 1
- 2
- 8
2
votes
1 answer
Running into a 403 error with nodejs and aws
The relevant packages I'm using are aws-sdk, multer-s3, and multer.
I have the upload setup as such:
aws.config.update({
secretAccessKey: "accessKey",
accessKeyId: "keyId",
region: "eu-west-2"
});
var s3 = new aws.S3();
const upload =…

Mike K
- 7,621
- 14
- 60
- 120
2
votes
1 answer
Transform photo with imagemin before uploading to s3 using multer-s3-transform
I was trying to use multer-s3-transform in uploading my photo to s3, but before that I need to transform the image to much lower file size using imagemin. I was able to do it using sharp but still want to try it using imagemin to specifically set…

virtualninja
- 192
- 3
- 16
2
votes
0 answers
How to pass Multer S3 stream to another function
I'm running a small Node.js express application that is using multer-s3-transform and sharp packages along with simple-thumbnail package to upload images and videos to to my S3 bucket. My code works perfectly for images, the image is passed, sharp…

Chrisl446
- 303
- 2
- 11
2
votes
1 answer
AWS compareFaces() Rekognition Javascript SDK Error: Unable to get object metadata from S3. Check object key, region and/or access permissions
I'm trying to use compareFaces() function from aws Rekognition API by referencing two files in the same S3 bucket "reconfaces" that is in the same Region as Rekognition(I set the S3 bucket to us-east-1, and so Rekognition). I set the bucket to…

John
- 1,711
- 2
- 29
- 42
2
votes
0 answers
Multer-s3 dynamic s3 instance
I'm trying to upload files to my s3 bucket, using multer and multer-s3 for Nodejs. The problem that I have now is that I want to set up my s3 instance dynamically because the s3 account and the bucket depend on my user settings.
I have the following…

Brayan Serrano
- 21
- 3
2
votes
2 answers
Amazon S3 bucket file upload response is not available
I'm using multer ,aws-sdk and multer-s3 packages along with express.
when users edit profile user may change profile picture /avatar or not.
I've passed multer object
multer({storage:
multer.memoryStorage()}).single('profileHeroImageEdit')
if…

FightForJustice
- 335
- 4
- 16
2
votes
2 answers
Multer s3 Filename
I'm using multer s3 to upload images from my node.js app to my amazon bucket. I'm using the date together with the original filename to create the new filename; however, when I try to display the new filename it just displays as undefined. This is…

Damian Buttle
- 75
- 3
- 11
2
votes
2 answers
How to send an array of files to express backend
I am trying to send an array of images to my backend and then upload them with multer-s3. I am sending them through react to a node express backend. When I submit from the frontend it is a submitting an array of images like so:
images : […

Nick McKendry
- 21
- 1
- 3
2
votes
1 answer
Transform images into thumbnails before uploading to S3 in nodejs
I have been trying multer-s3 for many hours, But i'm failing in creating thumbnails. Can anyone please tell me how to run it?
Following is my code:
var upload = multer({
storage: multerS3({
s3: s3,
bucket: 'test',
//…

Aneela Saleem Ramzan
- 127
- 1
- 8
- 15
2
votes
1 answer
Multer isn't passing in express put route
I'm trying to upload an image to the file system with Multer. Please take a look at the relevant data in my route:
const
..
multer = require('multer'),
..;
const storage = multer.diskStorage({
destination: function (req, file, callback)…

Joseph Chambers
- 3,698
- 4
- 22
- 37
2
votes
1 answer
Upload and redirect page using multer
I am having a problem to redirect the page after a successful file upload using multer. With the file upload i am also saving some text into the database. Here's my code.
Question :
When the file and the contents are saved in the DB how can I…

Illep
- 16,375
- 46
- 171
- 302