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

All Questions

Tagged with
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
0 votes
1 answer
27 views

Multer s3 upload: File in s3 not playing and file increase

I am uploading a mp4 file to s3 via node.js s3. The code works and I see the file in the s3. However The original file is 860kb but when uploading it it turns to 1.4MB and when I download it from S3 ...
ThunD3eR's user avatar
  • 3,366
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
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
1 vote
0 answers
40 views

Im unable to send appropriate error message to the client when using multer(upload.any() )

I'm using this middleware to upload files into an AWS S3 bucket. However, there has been a problem: I'm unable to enter Multer's error block while filtering the type of files in fileFilter. const ...
Jagadeesh 's user avatar
0 votes
1 answer
649 views

Unable to get the public link to s3 bucket object after uploading from node.js

I was trying to upload an image from node.js server to s3 bucket with the help of multer and @aws-sdk/client-s3. I'm using aws-sdk for javascript v3. When i use aws-sdk for javacript v2, I'm able to ...
Unnikrishnan KJ's user avatar
1 vote
0 answers
123 views

Problem in Uploading Multiple Images in Flutter using http Multipart

I want to upload multiple Images using http Multipart in flutter. Below is the code I am using. Future<void> updateUser({ required WidgetRef ref, required UserModel userModel, ...
Sanskar Modi's user avatar
1 vote
0 answers
148 views

Uploading multiple files to aws-s3 using Multer (Object with an other array of objects inside)

I'm trying to upload multiple images to my aws-s3 using multer. The problem I'm facing is I managed to upload the first backgroundImage which is outside the second array what I mean. Here is my ...
Strike's user avatar
  • 131
0 votes
2 answers
1k views

Files Uploaded to S3 do not open

I was developing nodejs api to upload file to my AWS s3. I followed some online articles and using the code below. The files (images/word/pdf) get successfully uploaded to s3. However they do not open....
Joy's user avatar
  • 165
0 votes
1 answer
2k views

TypeError: Cannot read properties of undefined (reading 'buffer')

In the front-end use form-data to send a post/put method to save data and edit data in the server. In the front-end have a problem with the image field. when new data is added. the new data will be ...
sumanth.js's user avatar
0 votes
1 answer
909 views

Uploading from AWS Lambda (Nodejs Express with multer) to S3 Bucket, returning white small box

I'm trying to upload from my lambda (nodejs express) to s3 bucket. But whenever I upload, and look for my uploaded file in S3, it only shows a white small box. 1 I already try converting my file ...
Frozen Elsa's user avatar
4 votes
1 answer
6k views

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 &...
sauravscode's user avatar
0 votes
1 answer
631 views

How can I upload files to S3 using multer without having multer store a copy of the files locally?

I am trying to upload files to S3 using an api that accepts multipart/form-data, without using multer the body is empty but after using it all is fine. However, multer stores a copy of every file ...
Haidy Elnahass's user avatar
0 votes
1 answer
167 views

Amazon S3 Bucket Policy Issue with Nodejs multer-s3

I've created an api to upload image to amazon s3 bucket with nodejs, multer, and multer-s3 . Its working fine in development returning me a response of image URL which is downloadable and accessible ...
Abdullah Bin Anis EB20_2003's user avatar

15 30 50 per page
1
2 3 4 5
9