Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6994553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:54:26+00:00 2026-05-27T19:54:26+00:00

In a node app I retrieve the content of a request with req.form.complete as

  • 0

In a node app I retrieve the content of a request with req.form.complete as follow (very simplified)

app.post('/myaction',  function(req, res){
    req.form.complete(function(err1, fields, files){
        res.writeHead(200, {"Content-Type": "application/json"});
        if (err1) {
            res.write("KO");
         } else {
            ... check something in db...
            res.write("ok");
         }
         res.end();    
      });
 });

My client never gets a response back. Seems to me the req.form.complete prevent the response from being sent… The idea behind this is to be able to parse the form and retrieve a picture within that form and then perform additional checks in DB before sending a response back.

Any idea to perform this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:54:27+00:00Added an answer on May 27, 2026 at 7:54 pm

    Well in fact I have removed the BodyParser option and used connect-form, it’s working fine like that. Still need to give formidable a shoot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my VERY FIRST node app. I'm literally just starting to piece through
I'm trying to retrieve an image from s3 in node using the following: app.get('/photos',
In my app i'm using a users feeds to retrieve al the post done
I've got an ASP.Net app in which my AppSettings node from the Web.Config xml
Can an ArrayList of Node contain a non-Node type? Is there a very dirty
When I start up my application in node.js node app.js and then make a
What is the best practice to scale a node app on Heroku? When should
In my node.js app I'm uploading a file (which is saved to local filesystem
I'm developing a node.js app. What I'm trying to do is get the getBody()
I've coded an node.js app that when get executed need to return CWD from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.