Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
43 views

multer error is not sent in response. request keeps pending

I am creating a file upload feature to upload multiple files(images) to the express application. I have configured the multer middleware with size limits and file mimetypes as follows : const storage =...
ISHAN JARWAL's user avatar
1 vote
2 answers
50 views

Node.js Multer: Intermittent File Upload Failures - Files Not Uploading to Server Randomly

I am facing an intermittent issue with file uploads using Multer in my Node.js application. The issue is that files are not always being uploaded to the server, and the req.files array sometimes ...
Ankit Sharma's user avatar
0 votes
3 answers
89 views

How to perform the form validation for title and description and then upload file using multer

I have the Node/Express server with multer for file upload. Form contains 3 fields and they are Title, Description and the Image. From postman in the body I select form-data and then passing the title,...
gopinath krm's user avatar
0 votes
0 answers
26 views

Getting error while using multer in node js

I'm currently working with multer file upload in node js but i got an error something just like this: This is my multer config: const multer = require('multer') /* Multer */ const FILE_TYPE_MAP = { ...
Muhammed Sahad's user avatar
1 vote
1 answer
85 views

How to upload array of objects (multiple image files) in Node.js

I have an issue in my app. Here is the object, we have motherPhoto, fatherPhoto,spousePhoto and siblingsPhoto to be uploaded.. { "mothername": "kerin", "motherPhoto": ...
Akash's user avatar
  • 19
1 vote
0 answers
54 views

How to upload multiple images using multer, node.js and react.js

I am using multer to upload files in react.js. To upload a single i am using below code, it's working fine as you could see in the below screenshot. How to upload multiple files using the same multer ...
Firoz Khan's user avatar
1 vote
0 answers
17 views

Multer unable to process files

I am making a serverless function using node. req.file always appears to be undefined for my image upload function. I have tried testing the API both with Postman and by making an HTML form for ...
Fundsroom's user avatar
0 votes
0 answers
88 views

Upload .zip in Next.js with Docker

I created a Docker container with a Next.js instance, the main idea is to upload a .zip with the UI and store this file in a folder inside de container, in the path /tmp/compreseed/${name_file}. But ...
Daniel Riaño's user avatar
0 votes
1 answer
223 views

file.size undefined in Multer

I'm using multer to handle a multi-file upload, and the middleware "filename", like this: filename: async (req, file, cb) => { console.log(Object.keys(file)); ({ rows } = await ...
djcaesar9114's user avatar
  • 2,092
0 votes
0 answers
27 views

API for saving images locally is not working

I'm trying to save an image locally with the help of multer but for some reason it's not working. All other data is saved correctly in the database, but the image is not saved locally, so naturally ...
zouker's user avatar
  • 33
0 votes
0 answers
10 views

nestjs uploader doesn't return path

I have a table in database called documents, it needs to save file_name and path but when I send post request in swagger it gives error docs should not be empty { "success": false, "...
Jushkin's user avatar
2 votes
1 answer
421 views

How do I create a NestJS endpoint that accepts exactly two files in addition to a string field?

Im' using NestJS 10. I would like to design an endpoint that accepts one string field and two files (named "frontImg" and "backimg"). I have created this endpoint @Post() @...
Dave's user avatar
  • 17.4k
0 votes
1 answer
88 views

wrong encoding for greek characters using multer upload package

When uploading files that characters are in greek letters the uploaded titles are saved as ΠÏξ Îαξ & ÎαÏÏιμιÏαίοι The following is the multer variables from multer inside js: const ...
anjel's user avatar
  • 1,374
0 votes
1 answer
42 views

Creating a Node server that relays file to another server(multer)

In my project, the setup is: Client -> relay server Relay server -> Resource server I am creating an API which will save the data on the Resource server. So, I have to upload the file to my ...
ritwick_ _D's user avatar
1 vote
1 answer
48 views

Image not uploading in the multipart/for-data form

const handlesubmit = async (e) => { e.preventDefault(); try { setshowloader(true); const data = { en_name: engName, hi_name: hiName, employeeID: EID, AadharNo: aadharNo, ...
Mayank Painkra's user avatar

15 30 50 per page
1
2 3 4 5
21