Questions related to streaming multer storage engine for AWS S3.
Questions tagged [multer-s3]
210 questions
4
votes
2 answers
How to use multer-s3 in aws lambda handler as middleware
I am trying to send a multipart/form-data form to an AWS-Lambda method.
I need to be able to send files to S3, and using incoming string parameters, I need to record metadata to RDS.
Now, I can do that using express and multer-s3 as follows;
var…

reyalsnogard
- 496
- 6
- 9
3
votes
1 answer
Type 'S3' is missing the following properties from type 'S3Client': destroy, middlewareStack, sendts(2739)
I am getting this error while working on a node backend using typescript and this is the function for file upload to aws S3. Im new to using typescript so can anyone help me on this.
import AWS from "aws-sdk";
import multer from "multer";
import…

sauravscode
- 61
- 1
- 5
3
votes
1 answer
Error: Cannot find module '@aws-sdk/abort-controller'
I'm trying to upload an image to the server using multer and multer-s3. but i am not able to declare the multer-s3 package. showing
Error: Cannot find module '@aws-sdk/abort-controller'
this is the declaration code
const multers3 =…

Venkat Cpr
- 153
- 1
- 11
3
votes
4 answers
InvalidAccessKeyId while trying to upload to s3
I'm using the aws-sdk to upload files to s3. I'm configuring my credentials with
aws.config.update({
accessKeyId: aws.config.credentials.accessKeyId,
secretAccessKey: aws.config.credentials.secretAccessKey,
region: 'us-east-1'
});
Then…

Farid
- 1,557
- 2
- 21
- 35
3
votes
0 answers
Upload file to S3 with multer-s3
I try to upload file from NodeJS to my S3 bucket.
The next code works fine.
./routes/lessons.js
const upload = require('../models/model.lessons');
router.post('/upload9', upload.array('file', 1), (req, res) => {
…

Eytan
- 85
- 1
- 7
3
votes
0 answers
Resizing images in multer s3 module
I want to resize and upload my images to s3 bucket.
I tried multer-s3-transform module and it didn't work.
And i tried sharp with it but it also didn't work.
const upload = multer({
fileFilter: fileFilter,
storage: multerS3({
s3: s3,
…

Seza Akgün
- 58
- 6
3
votes
0 answers
I'm using multers3 and nestjs to perform file uploading and some further processing to which I'm getting error
I need to perform the processing (in async upload) after the file has been uploaded, to which I'm getting error.
At first I was using diskStorage instead of cloud to which my code was running correctly.
//Initial code that saved files to disk
…

Cringyduck
- 31
- 3
3
votes
2 answers
Uploading large video file to s3 with multer-s3
I am not able to upload large files like videos to s3. It eventually times out. I've tried to use fs to stream it but I must not be using it properly.
I've tried everything I can think of to get fs to stream this file. I don't know if it is…

cthomas
- 31
- 1
- 2
3
votes
2 answers
How to upload the images to s3 bucket using nodejs?
I am new to aws. I want upload an image from node js using multer to s3 bucket.
I have followed the tutorial on youtube but am getting stuck with this error.
https://www.youtube.com/watch?v=ASuU4km3VHE&t=1047s
TypeError: Cannot read property…

Srikanth86in
- 107
- 2
- 12
3
votes
0 answers
var upload = this.s3.upload(params) TypeError: this.s3.upload is not a function
I am trying to upload a file to S3 using multer s3.However, it constantly fails.
aws.config.update({
secretAccessKey: 'key',
accessKeyId: 'secret',
});
var s3 = new aws.S3()
var upload = multer({
storage: multerS3({
s3:…

systemdebt
- 4,589
- 10
- 55
- 116
3
votes
1 answer
How to upload files to a remote server and change the path of it in nodejs?
This is my app.js file:
var express = require('express')
, multiparty = require('multiparty')
, request = require('request')
, fs = require('fs')
, util = require('util')
, http = require('http');
var app =…

Jagadeesh
- 1,967
- 8
- 24
- 47
2
votes
2 answers
I am getting multer error : unexpected field when i was trying to upload files in aws s3 bucket
I am done with all setup of the s3 bucket and using the correct secret keys,
I want to upload a file from my application using nodejs APIs for uploading and get the file URL from the s3 bucket
here is my code:
require("dotenv").config()
const…

Prashant Singh
- 23
- 5
2
votes
1 answer
Getting an 'Access Denied' error when using Multer-S3 to upload file to AWS-S3 Bucket
I have been trying to upload a file from my express backend application using Multer-S3 but I am getting an 'Access Denied' error. Printing out the error gives me this:
{
"success": false,
"errors": {
"title": "File…

fatalfuric
- 31
- 4
2
votes
1 answer
How do I restrict file types to images only using multerS3?
I have been able to connect my S3 bucket to my web application using multerS3, however, I'm not sure how to go about restricting the files that can be uploaded to images only. Before I was using S3, I used multerFilter to check the mime type, and…

Chris Clark
- 488
- 2
- 19
2
votes
1 answer
Update an image into AWS S3 with nodejs
I am using node to save an image into aws s3 storage with aws-sdk and multer midlleware.
I have a photo of a user and I am using a fixed name as key to object in aws S3.
When the user change the photo, I save it into aws s3 again with the same…

Luiz Alves
- 2,575
- 4
- 34
- 75