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

All Questions

Tagged with
0 votes
2 answers
84 views

Post FormData gets empty "req.files" with Multer - 503 on Heroku

I have to upload a file from client --> server1 and then server1 --> server2. Note: I know I should not store files in heroku, but actually I don't need to store the file, I just need it ...
DeLac's user avatar
  • 1,104
0 votes
0 answers
29 views

FormData of file array not working in React Native

I'm trying to upload video file from expo react-native to express backend. I'm using multer middleware for express. I tested backend with react frontend. this is react front-end code import { useState ...
Lee's user avatar
  • 1
1 vote
0 answers
282 views

Uploading formData from React Native to Node.js (multer) with axios - Getting AxiosError: Network Error

Im trying to upload an image as FormData for my backend. that is working well without the frontend request (using postman form data setting a key "name" with value "perfil", an a ...
foytecna's user avatar
1 vote
0 answers
214 views

How to separate json data and file data in form-data in node.js?

I am trying to send files and json data in form-data from react.js to node.js. In the backend(node.js), I am unable to get the json data. I tried logging req.body and it logged- [Object: null ...
Zaid Khan's user avatar
1 vote
1 answer
319 views

Angular NodeJS Upload File and parameters together

I have been looking through multiple tutorials and stack overflow questions but for some reason I just cannot make this work. I have issues with uploading a file, so maybe fixing that first would ...
Daniel's user avatar
  • 383
0 votes
1 answer
119 views

Images not making it to node + Multer backend from React

Ok so let me preface this by saying that the Content-Length is 154 on the request from react. However the request on the node backend is saying that Content-Length is null. So the images just aren't ...
Bryce Blankinship's user avatar
1 vote
0 answers
129 views

RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: ENOENT

I got this error when using multer to save an image. I am trying to use FormData to send image in a POST request with the fetch API. So back-end send me this error, and front-end send me unexpected ...
Rehab Ali's user avatar
0 votes
1 answer
647 views

How to upload a file on the frontend?

i got the following issue. I'm developing an application whit node.js on the backend and React on the frontend where the user can upload files. My code on the backend works fine; when i use postman ...
Alberto Cházaro's user avatar
3 votes
1 answer
9k views

Fastify multipart/form-data error: "body must be object"

I'm using fastify-multer and JSON Schema to submit multipart form data that may include a file. No matter what I do, Fastify keeps giving me a bad response error: { "statusCode": 400, &...
Mr. X's user avatar
  • 738
0 votes
1 answer
152 views

Error in parsing form-data in Node Express

I have an express service which has an endpoint that consumes a POST call with form-data in XML. Postman Call I'm using multer and express-xml-bodyparser and my index.js looks like: 'use strict'; ...
hojacat's user avatar
5 votes
1 answer
2k views

React Native Image Upload with FormData to NestJS server using a FileInterceptor, but 'file' is undefined

My React Native application receives a selected image using the react-native-image-picker library and I need to send that image to a back-end running a NestJS server. The endpoint uses @UseInterceptor ...
Dhanabordee Mekintharanggur's user avatar
3 votes
1 answer
2k views

Pass file uploaded via HTTP POST to another API

I have a Node.js (16.13.1) REST API using Express and one of my endpoints receives one or more uploaded files. The client (web app) uses FormData into which the files are appended. Once they're ...
S.King's user avatar
  • 33
0 votes
1 answer
83 views

ExpressJs receiving empty string fields which must have been objects and arrays

My backend: middlewares: const middlewares = [ cors(), helmet(), morgan('dev'), compression(), express.json(), express.urlencoded({ extended: true, limit: '15MB', }), ] const ...
spatak's user avatar
  • 1,291
1 vote
1 answer
158 views

Error in uploading Multiple Images in ReactNative

const availabilityData = new FormData(); availabilityData.append('name', title); availabilityData.append('foodType', foodType); availabilityData.append('availability_type', category); ...
Athavan T's user avatar
  • 386
1 vote
2 answers
1k views

req.body is empty and req.file is undefined using fetch API to upload a file

Using express and multer on the server. The code is like this: const uploader = multer({ storage: multer.diskStorage({ destination: (_req, _file, cb) => cb(null, './uploads/'), filename: (...
idlackage's user avatar
  • 2,843

15 30 50 per page