Questions tagged [multer-s3]

Questions related to streaming multer storage engine for AWS S3.

210 questions
0
votes
0 answers

500 error when sending POST request to multer-s3 route

I'm trying to use S3, specifically multer-s3, for image upload for a traditional web app that currently has multer/file system file upload (GitHub repo with previous code before the failed S3 upload attempt can be found here). The app is deployed to…
nCardot
  • 5,992
  • 6
  • 47
  • 83
0
votes
0 answers

How to render Image in the view with Expressjs after uploading with amazon multers3

please how do I tell my view to display the image in the view with ejs template. I am uploading to Amazon multers3 and the image is being uploaded in this directories successfully public/uploads/postImages this is my upload inside my route…
0
votes
0 answers

Multer.fields([...options]) only uploads file with first option

I have nodejs app which uploads files to amazon s3, I am sending 2 separate type file values from frontend, one is single file and other is array of files so to handle this case i have this route setup app.post('/api/class/add', …
Faizan Ul Haq
  • 454
  • 2
  • 7
  • 23
0
votes
1 answer

node js multer s3 file Uploading Issue

I am working a on nodejs restful api and trying to upload file on S3 using multer but its not working also i am not getting any error . here is a code from my Controller var aws = require('aws-sdk') var express = require('express') var multer =…
0
votes
1 answer

Multer-s3-transform with Sharp middleware in Express JS route, uploads correctly, but never calls next

I'm using multer-s3-transform to resize my image upload beore uploading to S3. Using Sharp for the resize. The transform does work fine, the image is resized and uploaded to S3 bucket, I can see the file in the bucket. However, the…
Locohost
  • 1,682
  • 5
  • 25
  • 38
0
votes
1 answer

Resizing and compressing images in Node.js using multer-sharp-s3

I am new to the community. I am trying to upload 3 different versions of an image for different purposes to aws s3 using a node script. I am able to resize according to my needs, using the resize and suffix array in multer-sharp-s3, but I also want…
0
votes
1 answer

multer-sharp-s3 not running with docker node alpine

Docker restarts after require('multer-sharp-s3'); //or require('sharp'); lovell/sharp stops Node docker without logging any error Docker Restarting (139) 37 seconds ago Github issue : https://github.com/ikhsanalatsary/multer-sharp-s3/issues/31
Amr Ibrahim
  • 2,066
  • 2
  • 23
  • 47
0
votes
1 answer

Nodejs scalable file upload server

Multer supports memory storage and disk storage My objective is to upload file to s3 through my node server. But Multer has this warning message in the documentation. Uploading very large files, or relatively small files in large numbers very…
Gani Siva kumar
  • 161
  • 1
  • 10
0
votes
1 answer

S3 bucket: TypeError: Cannot read property 'transfer-encoding' of undefined

I am using first-time AWS' S3 bucket. I used node, express server, multer, and multerS3. For testing I used postman. I wanted to upload image to my s3 bucket. I have created the bucket also add my credentials to my backend. But when I am trying to…
juha
  • 515
  • 5
  • 10
  • 18
0
votes
0 answers

AWS S3 "Access denied"

I am using Node.js and multer3s to communicate with AWS S3. I have tried a few different setups but still cannot make it right to actually upload a file to my bucket. For the S3 setup I have followed this tutorial. In my IAM service I have a user…
eja08
  • 4,600
  • 3
  • 13
  • 19
0
votes
1 answer

AWS S3 403 access denied issue with nodeJS

The following is my bucket policy { "Version": "2012-10-17", "Statement": [ { "Sid": "AddCannedAcl", "Effect": "Allow", "Principal": { "AWS": "==mydetails==" }, …
0
votes
0 answers

Access S3 images uploaded through 'multer' from Angular frontend

I'm creating a node js based server that has the ability to upload images to S3 using Multer. I am able to successfully upload the images. Now when I am trying to retrieve the images in my html page, with the image URL like…
Satyam
  • 15,493
  • 31
  • 131
  • 244
0
votes
1 answer

multers3 skipping shouldTransform

I am trying to crop images before it get send to s3 bucket. My issue is in my multerS3 options shouldTransform is being skipped hence not taking the transforms. Here is my entire file of upload require('multer-s3-transform'); const aws =…
kerubim
  • 137
  • 1
  • 8
0
votes
1 answer

Best way to upload file with text inputs

I am trying to create an item where users will be able to upload a file image, that uploads the file to amazon s3, and returns a string for the image address that should be passed into mongoDB as a single document along with text inputs such as name…
0
votes
0 answers

Why do these two methods give different performances when using multi-s3?

I think they're both the same binary buffers, but I want to know if they're doing a different performance. let paramS3 = { Bucket: "sopt24", Key: dateString+req.file.originalname, Body: new Buffer(req.file.buffer, "binary") // or // Body:…
최선필
  • 17
  • 3