FormData POST request throws Network error
问题 I have a react native app that allows users to upload images to the server along with additional data. I'm using NodeJS and ExpressJS as my backend framework. The route for posting images: router.post("/", checkAuth, upload.single("gallery_item_image"), function (req, res, next) { Branch .findById({ _id: req.body.branch_id }) .exec() .then((doc) => { if(!doc) { return res.status(404).json({ message: "Invalid Branch ID", }) } galleryItem = new GalleryItem({ _id: mongoose.Types.ObjectId(),