Questions related to streaming multer storage engine for AWS S3.
Questions tagged [multer-s3]
175 questions
4
votes
1 answer
How to use dynamic bucket name in Multer-s3 for file upload
I am trying to upload file into AWS S3 using node js.
My requirement is to use dynamic value for bucket in multerS3 storage object
storage: multerS3({
s3: s3,
bucket: function (req, file, cb) {
console.log(" bucketName…
ajoy sinha
- 714
- 1
- 8
- 19
3
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…
Arya
- 2,140
- 1
- 9
- 27
3
votes
1 answer
NestJS - How to upload image to aws s3?
I'm trying to perform an image upload to aws s3 using multer-s3 on NestJS API. I have also tried aws-sdk. I use FileInterceptor and UploadedFile decorator to capture the file request. So far what I have is:
// Controller
@Post()
…
hnakao11
- 323
- 4
- 21
3
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…
Abir Rahman
- 31
- 1
- 4
3
votes
0 answers
Upload file to S3 with multer-s3
I try to upload file from NodeJS to my S3 bucket.
The next code works fine.
./routes/lessons.js
const upload = require('../models/model.lessons');
router.post('/upload9', upload.array('file', 1), (req, res) => {
…
Eytan
- 85
- 1
- 6
3
votes
0 answers
Resizing images in multer s3 module
I want to resize and upload my images to s3 bucket.
I tried multer-s3-transform module and it didn't work.
And i tried sharp with it but it also didn't work.
const upload = multer({
fileFilter: fileFilter,
storage: multerS3({
s3: s3,
…
Seza Akgün
- 58
- 6
3
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
- 195
- 1
- 13
3
votes
0 answers
I'm using multers3 and nestjs to perform file uploading and some further processing to which I'm getting error
I need to perform the processing (in async upload) after the file has been uploaded, to which I'm getting error.
At first I was using diskStorage instead of cloud to which my code was running correctly.
//Initial code that saved files to disk
…
Cringyduck
- 31
- 3
3
votes
0 answers
var upload = this.s3.upload(params) TypeError: this.s3.upload is not a function
I am trying to upload a file to S3 using multer s3.However, it constantly fails.
aws.config.update({
secretAccessKey: 'key',
accessKeyId: 'secret',
});
var s3 = new aws.S3()
var upload = multer({
storage: multerS3({
s3:…
S Khurana
- 3,003
- 8
- 35
- 87
3
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…
Sherwin Ablaña Dapito
- 791
- 10
- 29
3
votes
1 answer
How to upload files to a remote server and change the path of it in nodejs?
This is my app.js file:
var express = require('express')
, multiparty = require('multiparty')
, request = require('request')
, fs = require('fs')
, util = require('util')
, http = require('http');
var app =…
Jagadeesh
- 1,104
- 4
- 21
- 37
2
votes
1 answer
How to delete a file image on amazon s3 when
I have a program Model, and i the program has an image attribute which I use multers3 to upload when creating the Program.
The challenge that I am facing now is that, when I delete the program, everything gets deleted on my local machine but I…
Chukwuma Kingsley
- 333
- 1
- 14
2
votes
1 answer
Multer returns req.file as undefined, and req.file.location as location undefined while uploading file to aws bucket
I am trying to upload images to s3 Bucket. And have tried many solutions online yet I get the above errors. I don't want to store images locally, instead I want to upload them directly to s3 bucket. Any help would be appreciated.
This is Upload.js…
Aditya Rathi
- 49
- 5
2
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
- 73
- 1
- 11
2
votes
0 answers
uploading large video files to s3 with express.js
i'm uploading media files to s3 with express and multer-s3. it's working fine if i upload files less than 10 mb.
if i upload larger than 7mb( i tested for. if i upload around 30mb it'll fail), it gives error.cannot determine length of string
I'm…
Gouri Shankar
- 119
- 2
- 7