How to use sendFile inside conn.query in node js
app.post(“/register”, (req, res) => { let id = req.body.id; let name = req.body.name; let email = req.body.email; cmd = “INSERT INTO emp VALUES(” + id + “, ‘” + name + “‘, ‘” + email + “‘)”; conn.connect((err) => { if (err) throw err; conn.query(cmd, (err, res) => { if (err) { throw err; } […]
what is your suggestioin about this?
what is good practice I ask my user about the duration of a video or I calculate using API
I want ans because when I ask users if it is good practice or not
Should I ask my user about the duration of a video or calculate it using an API? I want to know if asking the user is considered good practice.When it comes to determining the duration of a video, there are different approaches you can take. One option is to ask your users directly how long they prefer the video to be. Another option is to use an API to calculate the optimal duration based on various factors such as audience engagement, video type, and social media platform.