title: Trouble using expo file upload
body: <p>So i've been trying to wrap my head around uploading an image to backend node.js server, but i'm having trouble understanding the doc and the process. Note that i've already done this in a web app before using react in the front and multer in the backend. done it multiple times without trouble. I've found the expo-file-system package which is helpful.
  <a href="https://docs.expo.dev/versions/v45.0.0/sdk/filesystem/#filesystemuploadasyncurl-fileuri-options" rel="nofollow noreferrer">https://docs.expo.dev/versions/v45.0.0/sdk/filesystem/#filesystemuploadasyncurl-fileuri-options</a></p>
  <p>i'm having trouble understanding the FileSystem.uploadAsync method. Here's all code listed down below. a normal axios api call to upload the image would look like this</p>
  <pre><code>const data = new FormData();
  data.append(&quot;images&quot;, listing.images[0]);
  
  await axios({
        method: &quot;post&quot;,
        url: &quot;http://localhost:5000/products/addProduct&quot;,
        data: data,
        headers: { &quot;Content-Type&quot;: &quot;multipart/form-data&quot; },
      })
        .then((response) =&gt; {
          console.log(response);
        })
        .catch((error) =&gt; {
          //
        });
  </code></pre>
  <p>the backend</p>
  <pre><code>const storage = multer.diskStorage({
    destination: function (req, file, cb) {
      cb(null, &quot;./images&quot;);
    },
    filename: function (req, file, cb) {
      cb(null, Date.now() + file.originalname);
    },
  });
  
  
  router.post(
    &quot;/products/addProduct&quot;,
    upload.single(&quot;images&quot;),
    async (req, res) =&gt; {
      try {
        res.send(&quot;ok&quot;);
      } catch (err) {
        res.send(&quot;Error &quot; + err);
      }
    }
  );
  </code></pre>
  <p>Also, i tested the backend using an api client (insomnia) it works without a problem !</p>
  <p>So please how can i use the FileSytem.uploadAsync method to upload my images to the backend !!!</p>