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

All Questions

Tagged with
0 votes
1 answer
38 views

How do I set express multer to accept images from nested fields and test it in postman?

I am expecting product data and variation images from the front end to be something this. type Product = { name: string price: number discount: number discountType: '%' | '₹' ...
Azkaar Rauf Khatib's user avatar
0 votes
0 answers
34 views

Sending request from postman and its stuck on sending request. i am trying to upload video to mongodb

i am using multer and gridFsBucket to store a video on mongo but when i send request it gets stuck on sending request from postman this is code for my uploadMovie controller const uploadMovie = ...
DeTexTeR's user avatar
0 votes
0 answers
77 views

Uploading an image using Multer in a Node.js, Typescript and typeORM project using service, controller model

I will be very specific with this one. I am trying to upload an image for Staff entity in my project but the error persists. Here is my code snippets --> //from typeORM @Column({default : "&...
Abhishek Gautam's user avatar
0 votes
0 answers
23 views

How can I properly add images using multer without getting errors?

I am having issues with uploading images still, I get 200 when I upload my forms without attaching images but got no response when I attached Image. I'm trying to upload image in MongoDB using multer ...
Leo Emmy's user avatar
0 votes
2 answers
320 views

Nestjs Image Upload- Multiple image field

I am trying to implement image upload in my project. If I add single image it is working properly. But In multiple image fields getting error as { "message": "Unexpected field",...
Aiswarya KV's user avatar
0 votes
0 answers
102 views

I want to make a post request on postman to upload a file but I get this error: ErrorCaptureStackTrace(err); TypeError [ERR_INVALID_ARG_TYPE]:

I work with nodejs on a social network project I am on the part of the image upload for the profile photo and to do this I installed the multer module more precisely, version 2.0.0-rc.1.So I set up a ...
Gabriel Bidias's user avatar
-2 votes
1 answer
165 views

Cloudinary video or image upload

Cloudinary is a cloud-based service that provides an end-to-end media management solution for images and videos. With Cloudinary, you can easily upload your images and videos to the cloud and then ...
dammika rajapaksha's user avatar
0 votes
1 answer
296 views

how to handle image upload in the mern stack using multer?

Im creating a MERN stack application and in the react front end, i intend to have a form to add a product, the form is going to have a lot of inputs including an image upload option. I want to know ...
gerard's user avatar
  • 401
0 votes
8 answers
7k views

Why do I get this error: Postman Error: Malformed part header?

I am using Postman with these headers. If I keep the default Content-Type, it will throw me the error Error: Malformed part header However, if I remove the default Content-Type and put in my own (...
wel's user avatar
  • 234
0 votes
2 answers
2k views

multer and formik - Can't upload a file

I've got a problem with multer and Formik. When I test with Postman my upload route, to upload an image in a post, it works perfectly, save the imageUrl in MySQL and save the image in the correct ...
remsB's user avatar
  • 19
0 votes
2 answers
433 views

Error: "Undefined". Getting Undefined while using multer multiple file uploads. Tried most options including restart and npm reinstalling

I am trying to upload multiple images using a get request to update the initial post request that accepts a single upload. Not able to upload multiple images despite using the "files" as ...
Vidwat Kanade's user avatar
0 votes
0 answers
220 views

how to handle form-data on expressJs sent from postman

I am developing API to accept files and form data which will be sent from react, So I am using form-data type in Postman to test my API, but the error that I am getting is: Error: WHERE parameter &...
Moon Cake's user avatar
0 votes
1 answer
1k views

Files not being attached to POST request (axios) while sending with Postman works

Im trying to understand why my files are not being sent with axios request from frontend while I can send them with Postman. I have Nodejs backend with multer to accept files like so, app.use(multer({ ...
Jeekim's user avatar
  • 655
1 vote
0 answers
86 views

Files are only sent with postman but not with file input

When I send a file through the form, I get req.file is undefined. But through Postman, I get the file. Why? <form action="/up" method="POST" enctype="multipart/form-data&...
Jouio's user avatar
  • 27
0 votes
1 answer
688 views

trying to upload image to nodejs api but it returns with error

I am trying to upload image to my node.js server and when I upload nothing and just send the request to post without image, it works fine but whenever I try to post the image node.js shows error in ...
streak's user avatar
  • 79

15 30 50 per page