title: How to upload Image on server using ReactNative
body: <p>I am setting headers and body , Using fetch with Post to upload image on server.I am getting the response code 200 but it is not uploading image but rest of the Data is getting uploaded.</p>
  
  <p>Here is the code of body:</p>
  
  <pre><code>export default function setRequestBody(imagePath){
  
      let boundry = "----WebKitFormBoundaryIOASRrUAgzuadr8l";
  
      let body = new FormData();
  
      body.append("--"+boundry+"\r\n");
      body.append("Content-Disposition: form-data; name=imageCaption\r\n\r\n");
      body.append("Caption"+"\r\n");
      body.append("--"+boundry+"\r\n");
      body.append("Content-Disposition: form-data; name=imageFormKey; filename =iimageName.pngg \r\n");
      body.append("Content-Type: image/png \r\n\r\n");
      body.append({uri : imagePath});
      // appened image Data Here
      body.append("\r\n");
      body.append("--"+boundry+"--\r\n");
      return body
  
  }
  </code></pre>
  
  <p>Please help.What mistake I am making. :(</p>