title: nodejs file object send to aws s3 with s3.upload or s3.uploadPart
body: <p>I would like to send my file to amazon S3 that I've taken from client side as multipart/form-data.</p>
  
  <p>In the original doc of s3.upload it expect body as stream like below.
  <a href="https://i.stack.imgur.com/oLDRm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oLDRm.png" alt="enter image description here"></a></p>
  
  <p>And for a stream I need to store file into file system and give path.
  <a href="https://i.stack.imgur.com/tJnxQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tJnxQ.png" alt="enter image description here"></a></p>
  
  <p>Here the question comes.
  I have my file object that I've taken from client side as multipart/form-data</p>
  
  <pre><code>destination:"uploads"
  encoding:"7bit"
  fieldname:"file"
  filename:"test.zip"
  mimetype:"application/zip"
  originalname:"test.zip"
  path:"uploads\test.zip"
  size:4440
  </code></pre>
  
  <p>Is there any way that I send file directly without storing file system?</p>