title: How to upload a file with strapi and get the URL?
body: <p>I managed to upload an image but don't understand how I can get its URL.</p>
  
  <p>I'm using reactjs. My jsx:</p>
  
  <pre><code>import Strapi from 'strapi-sdk-javascript/build/main';
  const apiUrl = process.env.API_URL || 'http://localhost:1337'
  const strapi = new Strapi(apiUrl);
  
  &lt;form onSubmit={this.uploadFile}&gt;
      &lt;input ref={form=&gt; this.form= form}  type="file" name="files"/&gt;
      &lt;input type="submit" value="Submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And the function:</p>
  
  <pre><code> uploadFile = async (e) =&gt; {
      e.preventDefault();
      let a = new FormData(this.form);
      const response = await strapi.upload(a);
  </code></pre>
  
  <p>The file is being uploaded but the response just receives the value of true, and I'm not getting a full response.</p>
  
  <p>I tried to understnad strapi docs but didn't understand how to implement it:
  <a href="https://strapi.io/documentation/3.x.x/guides/upload.html#examples" rel="nofollow noreferrer">https://strapi.io/documentation/3.x.x/guides/upload.html#examples</a></p>
  
  <p>Thanks a lot in advance</p>