Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [multer-s3]

Questions related to streaming multer storage engine for AWS S3.

0 votes
0 answers
15 views

How to Get File Type passed into multipart form-data with Multer When Uploading to S3 in Node.js?

I'm using Multer to handle file uploads in my Node.js application, and I'm uploading files to an S3 bucket. I need to get the type I pass into multi-part formdata before uploading. How can I achieve ...
Bhavya Nayak's user avatar
-1 votes
1 answer
31 views

typescript issue with express,multer at req.file.key and re.file.location

Impossible to find a solution about how to typescript key and location First is use a middleware who communicate with amazon S3 for my picture on my website. typescript error: Property 'key' does not ...
degen balls's user avatar
0 votes
0 answers
26 views

How to unit test oversized files between multer and s3 with the v3 sdk?

I'm trying to test different scenarios for file uploads. Obviously, I don't want to actually upload to s3 so I'm mocking that using aws-sdk-client-mock. The scenario that I'm stuck on is testing the ...
Ken Boreham's user avatar
1 vote
0 answers
62 views

HTTP content length exceeded 10485760 bytes

This is the error I encountered HTTP content length exceeded 10485760 bytes while uploading to s3. I'm trying to upload image and video. How do I upload image and video above greater than 10mb in size?...
Shah Mubashir Ul Haq's user avatar
1 vote
2 answers
53 views

Request to Express endpoint won't stop loading, even if I set response status (Multer and Express issues)

I'm on the process of making a filter based off evaluating a file's signature obtained via a file's buffer provided by Multer. I know Multer provides the MIME type, but I also have to check wether the ...
Wren_Vaughan's user avatar
1 vote
0 answers
17 views

What should my http request be so that I can upload a document via this function?

This is my backend code and I want to send an image file from frontend to this function so it directly uploads to s3 bucket . This code works fine with postman and uploads an image successfully when ...
Ketan Doshi's user avatar
0 votes
2 answers
94 views

Property 'location' does not exist on type 'File'

I have changed multer to multer-s3. Changing in controllers for that. I will store "location" instead of "filename". But I am getting typescript error. I am using Localstack for ...
Nikhil Mandaliya's user avatar
0 votes
1 answer
76 views

Why won't my multer file uploads to AWS s3 work?

I was able to get my files to upload locally but am struggling to get it on AWS S3 Buckets. I'm receiving generic Cannot set headers after they are sent to the client errors after submitting a request....
Brenden Baio's user avatar
0 votes
2 answers
248 views

Upload image files to AWS-S3: TypeError: Cannot read properties of undefined (reading 'transfer-encoding')

I am trying to upload images to AWS-S3 with MERN Stack, but I can't even get the backend to work. I am diligently following this tutorial but I am getting a TypeError: Cannot read properties of ...
jlimsy's user avatar
  • 3
1 vote
0 answers
145 views

Multer S3 (v3) type error when implementing AWS SDK (v3) - missing properties from type 'S3'

I'm in the process of upgrading my AWS SDK from v2 to v3 (@aws-sdk/client-s3 v3.496.0). This includes upgrading multer-s3 to v3.0.1 to be compatible as stated by their docs. But I'm getting the ...
Mix Master Mike's user avatar
0 votes
1 answer
186 views

Why can't I upload files >1MB using multer-s3?

is there a reason why multer won't let me upload files greater than 1MB? import { Request, Response } from 'express'; import { v4 as uuidv4 } from 'uuid'; import multer from 'multer'; import multerS3 ...
firefly1095's user avatar
0 votes
0 answers
129 views

Multer S3 i want to upload image and then upload a resized version of it

This is my code as you can see I have a middleware of multer upload uploading the file after that I am saving the file path to my database so I was wondering how can I upload the resized image ...
HuSaad's user avatar
  • 160
0 votes
0 answers
102 views

I want to make a post request on postman to upload a file but I get this error: ErrorCaptureStackTrace(err); TypeError [ERR_INVALID_ARG_TYPE]:

I work with nodejs on a social network project I am on the part of the image upload for the profile photo and to do this I installed the multer module more precisely, version 2.0.0-rc.1.So I set up a ...
Gabriel Bidias's user avatar
0 votes
0 answers
109 views

Nestjs: how to create a post with description and s3 photo url

I trying to make a api with nestjs that needs to do these things: first, i need to post a file with multer and save in the AWS S3. After, with prisma, i need to create a post that needs a description (...
matheusosan's user avatar
1 vote
1 answer
201 views

how can i upload images and video to s3 in one single route using nodejs

this is how i upload videos router.post('/vid', upload.array('files', 5), async (req, res) => { try { const video = new Video(); video.url = []; req.files.forEach((file) =...
Daniel's user avatar
  • 306

15 30 50 per page
1
2 3 4 5
15