title: How to upload an image in React JS?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;div className="mb-1"&gt;
       Image &lt;span className="font-css top"&gt;*&lt;/span&gt;
       &lt;div className=""&gt;
           &lt;input type="file" id="file-input" name="ImageStyle"/&gt;
       &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is the snippet i provided that i was using to pick the file from the device in react js,
  Using this i can select the file and that filename is also shown as well 
  What i want is now to store this file on S3 or anywhere and get its URL from there and POST it to my server using fetch api call.</p>