Welcome to "The Debug Arena" 🎉! We empower you to become a coding master. Whether you're into web development 🌐 or Android app creation 📱, our step-by-step tutorials and expert insights will help you achieve your coding goals. When you hit a roadblock 🚧, we're here to solve errors together 🤝 so you can overcome any coding challenge with ease.
What We Teach: React JS ⚛️: Build dynamic user interfaces. MongoDB 🍃: Use flexible NoSQL databases. MySQL 🐬: Manage relational databases efficiently. Node JS 🟢: Develop robust backend solutions. React Native 📲: Create high-performance mobile apps. Android Development 🤖: Build seamless mobile applications. Angular 🔺: Develop single-page web applications. Firebase 🔥: Integrate real-time database and authentication. Full Stack Development 🌐: Become a proficient full stack developer.
We are dedicated to helping you troubleshoot every problem mentioned in the comments 🛠️.
Hit that subscribe button 🔔 and boost your coding journey!
register.js file having Register function as a component , but in App.js you imported SignUp component from register. Where these signup component is coming from >? Kindly reply. ❗❗❗❗⭕⭕⭕🔴🔴
So basically you are correct I have exported register from register component but here I am receiving that in the name of SignUp as there is only one default export
I have a doubt how to handle the validation in the backend for the title (because even if title is not present file upload is happening) I have the same case , but with image upload with title and description. If title or description is not present in the request then no need to upload, only when all 3 (title, description and proper image is present ) then only upload. But in my case the upload is happening (with valid image, but without title or description given). How to handle this scenario ? I need to prevent the upload process if a title or description is not present
It is pretty simple. In backend api we are accepting image and title through req.body so after accepting req.body add condition that if(req.body.title==null) return res.json() Make sure to modify condition as per your requirement and don't forgot to add return before sending the response. Try this and if you are not able to do this then dm me on instagram.
@@thedebugarena Thanks for the quick reply, below is my code - I am testing from postman - type as form data app.post("/uploads", (req, res, next) => { upload.single("photo")(req, res, (err) => { const { title, description } = req.body; if (!title || !description) { return res .status(400) .json({ error: "Title and description are required" }); } if (err instanceof multer.MulterError) { return res.status(400).json({ error: err.message }); } if (!req.file) { console.log(req.file); return res.status(400).json({ error: "File not uploaded." }); } res.send(req.file); }); }); This code works fine but only issue in validation. First validate and if ok then only upload, but even though the title/description is not present file upload is happening.
Hello brother I have tried numerous times to make a build through react native community cli but the build is failing.I have tried numerous possible solutions.Can you help me somehow?
hey....I tried this and it did work to some extent but when I login in the portal it just directs me to a blank screen not to the profile section........can u help me with this...!!!!
You might need to debug it first make sure you are navigating to correct URL check typo error in name. Also, there can be chances that it is navigating to profile screen but data is not coming so for that try to render static content at start. If issue still persist DM me on Instagram.
I have created a video on How to login as admin but in that I have used Node JS and Mongo Db. If you want you can refer that video and apply that logic here it is pretty simple. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SZXZRRZML2g.html
bro react native mein video kaise display Karate Hain Maine react-native-video ka use kiya tha to RCTVideo was not found in UI manager issue aa raha hai
Then we will get error and data will not be present in our screen. To tackle this we will have to use private router concept of react js. I will be making video on this very soon.