Questions tagged [multer-s3]

Questions related to streaming multer storage engine for AWS S3.

210 questions
0
votes
0 answers

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 structure const QuizSchema = new mongoose.Schema({ …
0
votes
1 answer

this.client.send is not a function error with Multer S3 & AWS SDK

Getting this error when trying to upload file to aws s3 using aws-sdk(V2) & multer-s3(V3) TypeError: this.client.send is not a function at Upload.__uploadUsingPut (C:\Working Projects\node_modules\@aws-sdk\lib-storage\dist-cjs\Upload.js:66:57) …
Aflah vp
  • 313
  • 2
  • 17
0
votes
0 answers

how to handle horizontal rotation of iOS images with multer-sharp-s3 in Node JS

I encountered a problem with image upload through iOS devices. Every time I take a photo from the phone and try to upload it to my S3 bucket with multer-sharp-s3, it rotates it horizontally. Now I have read the image on this site:…
Shoone
  • 11
  • 3
0
votes
0 answers

How to upload image into S3 via AWS Amplify Backend correctly using multerS3?

I'm using AWS Serverless Express, Multer-S3. multer code is here: `const upload = multer({ storage: multerS3({ acl: 'public-read-write', s3: s3, bucket: 'BUCKET-NAME', metadata: function (req, file, cb) { cb(null, {fieldName:…
0
votes
1 answer

Nuxt3 multer-S3 send formData

I've been stuck for days now. In Nuxt3, I am going to upload an image to aws bucket using multer S3 as formdata. However, there is no operation in the code below. Can you tell me what I missed? The useFetch is unfamiliar. In the example for axios,…
Vanish
  • 61
  • 2
  • 7
0
votes
0 answers

How can i create a multerS3 middleware for multiple file upload on an other helper file? not in the router file?

if (file.mimetype.split('/')[0] !== 'image') { cb(Error('Invalid file type'), false); } if (file.length > 20) { cb(Error('File limit exceeded'), false); } cb(null, true); }; let multipleUpload = multer({ storage: multerS3({ s3: s3, bucket:…
0
votes
0 answers

After uploading an image to S3 bucket, it looks strange most of the time, but the same images looks OK sometimes

After uploading an image to S3 bucket, it looks strange most of the time, but the same images looks OK sometimes, so I'm not sure what's going on. It started happening from last week and before that it was working fine. Here is a sample image that I…
Dargha Patel
  • 35
  • 1
  • 4
0
votes
0 answers

Error 500 : upload file AWS3, multer, Angular

I want to upload a file to AWS-S3 with an Angular frontend and a Node.js/Multer backend. I get a 500 error when I put everything together: index.ts (server side) import aws from 'aws-sdk'; import multer, { FileFilterCallback, MulterError } from…
0
votes
0 answers

IOS file upload from camera showing content-type : Application/Octat-Stream

While uploading a video file from android everything is working fine...But when uploading from apple devices(not from gallery..directly from camera)...The file's content type is showing as Application/Octet-Stream in S3 ,and the file is not working…
0
votes
0 answers

Multiple Multer middlewares for one express request

I am build an api route which will be responsible for uploading media (images/videos) to the S3 bucket. For that I am using Multer as express middleware. Before uploading videos to the server, I am trying to save them on the disk using multer({dest:…
spatak
  • 1,039
  • 1
  • 14
  • 25
0
votes
0 answers

How exactly do I extract and merge a audio file using @ffmpeg/ffmpeg

I have a lot of issues about audio transfer to server and frontend. I am building a solution that is extracting and merging a file received from frontend. I am using local ffmpeg file with node.js child_process package. My Env: framework:…
0
votes
1 answer

S3 upload with multer typescript nodejs - Cannot read properties of undefined (reading 'map')

I have created a route for uploading files to an S3 bucket, which is working perfectly. However, when I try and add it into my Accommodation controller with additional logic it is causing the error Cannot read properties of undefined (reading…
Chris
  • 76
  • 1
  • 7
0
votes
0 answers

Non-English Filename is broken When I send the file to server

When using multer-s3, a .wav contain non-english filename is broken. "multer": "^1.4.5-lts.1", "multer-s3": "^2.10.0", like this: á\x84\x91á\x85µá\x84\x8Bá\x85¡á\x84\x82á\x85©.wav This issue is generated when frontend send non-english file to…
0
votes
1 answer

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 but when I host my node app on Aws Lambda (API…
0
votes
1 answer

Multer req.files is empty

I am trying to upload a array of image using Multer. In the client side I have the array which needs to be sent to the server. below I will attach the array screenshot. As you can see in the below screenshot the array is present but in the server…
brohxa
  • 89
  • 1
  • 9