title: Receive wav file and write it to disk on Node/Express Server
body: <p>I'm sending a audio file to my Node/Express server using the following:</p>
  
  <pre><code>curl -X POST -H "Content-Type: audio/wav" --data-binary @"hello.wav" http://127.0.0.1:3000/extract_indicators/audio/darksigma
  </code></pre>
  
  <p>And I'm using the following code:</p>
  
  <pre><code> ...
  
  app.use(bodyParser.raw({ type: 'audio/wav', limit: '50mb' }));
  
   ...
  
  app.post('/extract_indicators/audio/:user_id', function (req, res) {
    console.log("RECIEVED AUDIO TO EXTRACT INDICATORS: ", req.body);
    var writeStream = fs.createWriteStream('sample.wav');
    req.pipe(writeStream);
    res.sendStatus(200);
  });
  </code></pre>
  
  <p>But the <code>sample.wav</code> file ends up being empty. Any ideas?</p>