title: solidity drive app using the traffic react box
body: <p>I was making solidity drive app using the traffic react box.</p>
  
  <p>Drag the file to your browser to upload the file to ipfs and attempt to save the returned hash value by calling the deployed smart contact.</p>
  
  <p>When the file is decried, the error 'POST <a href="http://localhost:5001/api/v0/add?stream-channels=true" rel="nofollow noreferrer">http://localhost:5001/api/v0/add?stream-channels=true</a> 403 (Forbidden)' is returned.</p>
  
  <p>I need help with how to fix it.</p>
  
  <p>// here is my onDrop Event Code</p>
  
  <pre><code>  onDrop = async (file) =&gt; {
  try {
    const {contract, accounts} = this.state;
    const stream = fileReaderPullStream(file);
    const result = await ipfs.add(stream);
    const timestamp = Math.round(+new Date() / 1000);
    const type = file.name.substr(file.name.lastIndexOf(".")+1);
    let uploaded = await contract.methods.add(result[0].hash, file.name, type, timestamp).send({from: accounts[0], gas: 300000})
    console.log(uploaded);
    this.getFiles();
  } catch (error) {
    console.log(error);
  }
  </code></pre>
  
  <p>};</p>