title: Upload a video file as blob to AWS S3 using JavaScript or Angular CLI
body: <p>I'm working on recording and storing video data from Mediarecorder API. JavaScript below:</p>
  
  <pre><code>&lt;button id="start-recording"&gt;Start Recording&lt;/button&gt;
  &lt;button id="stop-recording" disabled&gt;Stop Recording&lt;/button&gt;
  
  &lt;video controls autoplay&gt;&lt;/video&gt;
  
  &lt;script&gt;
  
  let videoStream;
  let recorder;
  let isRecording = false
  let blobsArray = [];
  
  navigator.mediaDevices.getUserMedia({
      audio: true,
      video: true
      })
   .then(function (stream) {
      videoStream = stream;
      document.getElementById('video').setAttribute('src', window.URL.createObjectURL(stream));
  })
  
  
  function videoDataHandler (event) {
      var blob = event.data;
      document.getElementById('blob-video').setAttribute('src', window.URL.createObjectURL(blob));
  };
  
  
  var createMediaPlayer = function () {
      window.recorder = new MediaRecorder(videoStream, {
          mimeType: 'video/webm'
      });
      window.recorder.ondataavailable = videoDataHandler;
  };
  
  
  var recordButton = document.getElementById('record');
  recordButton.addEventListener('click', function (e) {
      isRecording = true;
      createMediaPlayer();
      window.recorder.start();
  });
  
  var stopButton = document.getElementById('stop');
  stopButton.addEventListener('click', function (e) {
      isRecording = false;
      window.recorder.stop();
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>It works perfectly on cameraCapture and Recording. </p>
  
  <p>If you'll inspect the element, the video src or 'Copy Video Address' in browser, its a blob URI. </p>
  
  <p>I'm trying to figure out where this video is stored in browser but for now my need is, I want to store this video in AWS S3 somehow. </p>
  
  <p>I tried a simple demo using multer-s3 (node) and presigned URL( Angular CLI ) for a simple video file.</p>
  
  <p>I'm Finding it difficult to relate JavaScript SDK tutorial on AWS docs and achieve this.</p>
  
  <p>I followed this <a href="https://stackoverflow.com/questions/48477579/aws-s3-file-upload-using-javascript">post</a></p>
  
  <p>I need to know,</p>
  
  <ol>
  <li><p>How to upload the video file(through blob URI) or someother means if any, to 
  Amazon S3. 
  The video URL is like this "blob:<a href="http://localhost:4000/3342d635-9026-4036-" rel="nofollow noreferrer">http://localhost:4000/3342d635-9026-4036-</a> 
  a012-0e184cec44c9"</p></li>
  <li><p>Where is this video stored in the browser, I saw <a href="https://www.npmjs.com/package/blob-util" rel="nofollow noreferrer">this</a> , still lacking 
  clarity</p></li>
  </ol>