Questions related to streaming multer storage engine for AWS S3.
Questions tagged [multer-s3]
210 questions
1
vote
1 answer
how can i upload images and video to s3 in one single route using nodejs
this is how i upload videos
router.post('/vid', upload.array('files', 5), async (req, res) => {
try {
const video = new Video();
video.url = [];
req.files.forEach((file) => {
video.url.push(file.location);
…

Daniel
- 271
- 6
1
vote
0 answers
Is there a way to stream back upload progress when using multer, multer-s3, and express?
My current implementation for letting a user upload a file to s3 through my server looks like this.
import express from 'express';
import "dotenv/config";
import { S3Client } from '@aws-sdk/client-s3';
import multer from 'multer';
import multerS3…

Paul Jose
- 23
- 5
1
vote
0 answers
Nodejs times out POST request with files bigger than 6gigabytes due to server timeout
Im using multer to upload FormData to server,file binary alongside some text/objects.
Problem arises with files above 4~5gbs where post request is in pending state and than after a while it returns with POST http://localhost:5000/upload…

MichalZard
- 69
- 6
1
vote
0 answers
File does not uploads to S3 using multer S3 if filename is absent in request object
I am using a third party service which pushes data to my expressjs endpoint to with a file. I have used multer and multer S3 to upload the file on S3 bucket and it works well when I try using postman.
However the when the third party makes a push to…

Apurva Mayank
- 721
- 2
- 12
- 32
1
vote
0 answers
Why am I getting this error? CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
I have built an app in Nodejs which uploads file to the DigitalOcean Spaces. I am using multer for the same. When I run it locally on my device, it successfully uploads on DigitalOcean but when I try to upload it after the deploying the app on…

Mathomania
- 13
- 2
- 4
1
vote
1 answer
how to check if the request have contains file
I'm trying to create a route that save the user information along with the image and the route working with the file but in this case the image is a optional one. without the file in the request its show error.
unhandledRejection
TypeError Cannot…

Venkat Cpr
- 153
- 1
- 11
1
vote
1 answer
Bucket Name Duplicated in AWS S3 File Location
Im uploading image files to my S3 bucket with multer S3. Everthing goes smooth, file does get uploaded but bucket name gets duplicated in returned FILE LOCATION:
Here's the file location is s3: CORRECT in…

Masood Ahmad
- 21
- 2
1
vote
0 answers
How to upload client files directly from express to minio ? ( nodejs )
im using express framework and i want to have a middleware to be able to upload files directly from clients to minio s3, how is that possible ?
i tried using multer-s3 package but it gave me error, here is the opened issue on multer-s3's…

mahdi
- 207
- 1
- 15
1
vote
1 answer
Mock Multer.single() Jest/Typescript
Trying to mock my 'FileService'.
FileService:
class FileService() {
public uploadToS3SingleFile = (bucketName: string, formDataKey: string) =>
multer({
storage: multerS3({
s3: awsClientS3,
bucket: bucketName,
…

Serhii Zadorozhnyi
- 576
- 2
- 8
- 25
1
vote
0 answers
Can't access buffer in FileInterceptor while uploading file with nestJS/multer
I'm trying to access the buffer of a file uploaded with Postman to a simple controller in Nest. The buffer exists in the request object, but I can't access it in the fileFilter of the…

jaqarrick
- 256
- 2
- 5
1
vote
1 answer
Why MulterS3 defines .excel .docs as application/zip files what can I do with it?
In this block of code, I output the mime file type. When loading .docs or .excel I get the result of application/zip
const upload = multer({
limits: {
fieldSize: 10000000 //10MB
},
storage: multerS3({
s3: s3Client,
…

MiyRon
- 406
- 7
- 15
1
vote
0 answers
Transform video and image with multer-s3-transform
I'm trying to upload media to S3 with multer-s3-transform
Here is my endpoint:
router.post(
ROUTE_CONSTANT.PRODUCT_IMAGES,
validation.verifyProductExisted,
uploadImage.single('image'),
uploadProductImage
);
Here is my…

Nguyen Hoang Vu
- 751
- 2
- 14
- 35
1
vote
0 answers
Set Multer object key in node.js on the fly
I have node express routes, where I need to set a aws bucket name in a Multer Object.
When the users get logged in my app, I have an API to get the correct bucket name to user.
I call that API in a middleware to all routes and I set…

Luiz Alves
- 2,575
- 4
- 34
- 75
1
vote
0 answers
How to keep a image in s3 bucket without changing its key
I am trying to make a profile pic editor from which we can upload a image directly to s3 bucket and storing the address in mongodb database using multer
But problem is whenever I keep the key of image same. For ex ("profile-image")the picture gets…

ramanjeet singh
- 21
- 2
1
vote
0 answers
extracting the contents before upload
I'm using multer s3 to upload to digital ocean space. I'm sending a zip file which I want to be unzipped before it gets uploaded to space. How do I unzip the file before uploading it to multer?
Edit: The zip file has multiple folders and multiple…

deadbeforesunlight
- 209
- 2
- 11