title: How to pipe upload stream of large files to Azure Blob storage via Node.js app on Azure Websites?
body: <p>I am building a Video service using Azure Media Services and Node.js
  Everything went semi-fine till now, however when I tried to deploy the app to Azure Web Apps for hosting, any large files fail with 404.13 error. </p>
  
  <p>Yes I know about <code>maxAllowedContentLength</code> and not, that is NOT a solution. It only goes up to 4GB, which is pathetic - even HDR environment maps can easily exceed that amount these days. I need to enable users to upload files up to 150GB in size. However when azure web apps recieves a multipart request it appears to buffer it into memory until a certain threshold of either bytes or just seconds (upon hitting which, it returns me a 404.13 or a 502 if my connection is slow) BEFORE running any of my server logic. </p>
  
  <p>I tried <code>Transfer-Encoding: chunked</code> header in the server code, but even if that would help, since Web Apps doesn't let the code run, that doesn't actually matter.</p>
  
  <p>For the record: I am using Sails.js at backend and <a href="https://github.com/balderdashy/skipper" rel="nofollow">Skipper</a> is handling the stream piping to Azure Blob Service. Localhost obviously works just fine regardless of file size. I made a duplicate of this question on MSDN forums, but those are as slow as always. You can go there to see what I have found so far: <a href="https://social.msdn.microsoft.com/Forums/azure/en-US/95228deb-2db0-4522-9e18-f49d3df812ea/nodejs-404-when-trying-to-pipe-large-files-from-user-upload-on-azure-web-app" rel="nofollow" title="How to upload large files via Azure Web Apps">enter link description here</a></p>
  
  <p>Clientside I am using Ajax <code>FormData</code> to serialize the fields (one text field and one file) and send them, using the <code>progress</code> even to track upload progress.</p>
  
  <p>Is there ANY way to make this work? I just want it to let my serverside logic handle the data stream, without buffering the bloody thing.</p>