Questions tagged [multer-s3]

Questions related to streaming multer storage engine for AWS S3.

210 questions
5
votes
6 answers

MulterS3 is giving this.client.send is not a function error

Note: Getting below error in multer s3. This error is pointing NPM module and I really don't understand the issue with this module. I have used upload.single as well as upload.array method to check the working of this module. But not…
Jay Bhajiyawala
  • 101
  • 1
  • 4
  • 11
5
votes
1 answer

How to validate different file types in multer s3?

I want to handle and validate video and image files from multer.Multer middleware can have 1 video file and 10 images.I want to validate whether it have only 10 images and 1 video file.I also want validate file size.I want video to have 25mb and…
Arpan Pathak
  • 53
  • 1
  • 6
5
votes
2 answers

Is it possible to get image dimensions (width and height) using Multer before the image gets saved/uploaded

I'm using Multer with Express and I'm trying to retrieve image dimensions (width and height) before I upload the image to AWS S3. My goal is to validate the image by image size, image type and image dimensions. Image size and image type can be…
hakaman
  • 411
  • 1
  • 5
  • 8
5
votes
1 answer

Keep original file with multer-s3-transform

If I am uploading an image I want multer s3 to keep an original, in addition to create a thumbnail. In other words. I only want to change the filename in the first transform. The code below works ish, but the problem is that sharp() modifies the…
Jørgen Vik
  • 726
  • 1
  • 8
  • 27
5
votes
1 answer

Multer-s3 Uploading empty files on mobile

I'm using angular and multer-s3 to upload files from an angular app to a node server. Everything works well on the desktop but for some reason when trying to upload the photo via my iPhone 7 the uploaded file is corrupt. I'm using the same image and…
Jonathan Corrin
  • 1,219
  • 4
  • 17
  • 42
5
votes
0 answers

Track progress for image upload using multer, express and multer-s3 for NodeJS

I'm trying to upload images to AWS S3 using multer-s3. Everything works fine (i.e. uploading video, images and files) but it's incomplete. I have no idea how to track the progress or percentage of the upload. My code for multer is treated as a…
4
votes
0 answers

how to use sharp to resize image while uploading to s3 nodejs

I use multer to upload the images to s3. The user clicks on upload button in the frontend, and uploads the image, which is then uploaded to s3 with the helper multer backend. But the images uploaded aren't optimised i.e if the user uploads a 4mb…
Sai Krishnadas
  • 2,863
  • 9
  • 36
  • 69
4
votes
2 answers

Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'WritableStream'

node_modules/mongodb/mongodb.d.ts:3314:5 - error TS2416: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'Writable'. Type '{ (): void; (chunk: Buffer): void; (callback: Callback
4
votes
1 answer

How to use multer-s3's type definition for req.file rather than multer's

I am migrating from JS to TS and encountering some issues along the way. I'm using the widely known multer package with a custom storage engine multer-s3 to efficiently stream incoming files directly to AWS. The custom storage engine, multer-s3,…
linus_hologram
  • 1,595
  • 13
  • 38
4
votes
2 answers

Getting SignatureDoesNotMatch: null error while uploading images to DigitalOcean Spaces using multers3 node.js

Error: code:'SignatureDoesNotMatch' extendedRequestId:undefined message:null name:'SignatureDoesNotMatch' region:null // Load dependencies const aws = require('aws-sdk'); const express = require('express'); const multer = require('multer'); const…
Aryan
  • 3,338
  • 4
  • 18
  • 43
4
votes
0 answers

Request failed with status code 413, request entity too large

I have a node.js server combined with a react.js frontend. I've a form that requires users to upload files to a AWS S3 bucket. I'm using Multer.js to handle the file upload. I've set the default upload size to a max of 10mb. While there is…
4
votes
0 answers

Anyway to unzip and upload array of files to AWS S3 using multer (multer s3) in Nodejs

Here's how I'm uploading files to AWS S3: const config = (req) => { limits: { fileSize: 20000000 }, // 20 MB storage: multerS3({ acl: 'public-read', bucket: `${Bucket}/${orderNumber}/orderFiles`, key(request, file, cb) { …
Jeff Adam
  • 103
  • 1
  • 11
4
votes
5 answers

Multer-S3 with sharp upload and resize

I've been able to upload to s3 an image file using multer-s3 library but now I'm trying to add the sharp library to resize and rotate but can't figure out where or how it needs to go. This is my current code that works for uploading: var options =…
Andres
  • 2,013
  • 6
  • 42
  • 67
4
votes
1 answer

Can't upload large files to AWS with Multer S3 NodeJs

I can't upload large files to aws using multer-s3. I'm using the following code: const upload = multer({ storage: multerS3({ s3, bucket: 'welive-inc', acl: 'public-read', metadata: function (req, file, cb) { cb(null,…
Ali Khiti
  • 265
  • 4
  • 22
4
votes
1 answer

multer-s3 upload within express is ridiculously slow

File uploads to S3 via multer-s3 in my express app is ridiculously slow (200kb takes 10 seconds, latency scales in relation to file size). Problem is multer-s3 but can someone tell how to further debug what's happening within the library? Passing…
Villahousut
  • 115
  • 1
  • 11
1
2
3
13 14