title: pinFileToIPFS API calling for S3 File URL
body: <p>My file is <a href="https://test-chaincerts.s3.amazonaws.com/download1jpeg-1626112288619.jpeg" rel="nofollow noreferrer">image link or any other file link</a>. I was trying to call <a href="https://api.pinata.cloud/pinning/pinFileToIPFS" rel="nofollow noreferrer">pinata pinFileToIpfs API</a> (<a href="https://pinata.cloud/documentation#PinFileToIPFS" rel="nofollow noreferrer">Documentation</a>).</p>
  <p>According to documentaion , i have to pass path of local file for appending. But i have AWS URL. How to still call the  below API?</p>
  <pre><code>let data = new FormData();
  data.append('file', fs.createReadStream('./yourfile.png'));
  </code></pre>
  <p>NOTE : I tried this also</p>
  <pre><code> data.append('file', s3.getObject({Bucket: myBucket, Key: myFile})
  .createReadStream());
  </code></pre>
  <p>but it didnt worked out.</p>