title: File Upload to BIM 360 works in Postman but not with React JS
body: <p>Hi I'm new to Autodesk Forge. I was following the tutorial to upload a file to BIM 360. The upload works when using Postman but I'm unable to view the file when I upload using React JS.</p>
  <p>I'm using FileReader and reading file as BinaryString. Where token is the access token.</p>
  <pre><code>onInputChange(e){
      let files = e.target.files;
      let reader = new FileReader(); 
      reader.readAsBinaryString(files[0]);
  
      reader.onload = (e) =&gt; {
          const buffer = Buffer.from(e.target.result, 'base64');
  
          var myHeaders = new Headers();
          myHeaders.append(&quot;Authorization&quot;, `Bearer ${token}`);
          myHeaders.append(&quot;Content-Type&quot;, &quot;application/octet-stream&quot;);
  
          var requestOpts = {
              method: 'PUT',
              headers: myHeaders,
              body: buffer,
          };
  
          
          fetch('https://developer.api.autodesk.com/oss/
              v2/buckets/:bucketKey/objects/:objectName'
              , requestOpts)
          .then(response =&gt; response.json())
  
  
  
      }
  }
  </code></pre>
  <p>The file manages to upload but im unable to view it in bim 360. Image below.</p>
  <p><a href="https://i.stack.imgur.com/Uy2o8.png" rel="nofollow noreferrer">bim360 file image</a></p>