title: How to fix error 400 "file not found" when sending file to api endpoint on a REST POST snap on snaplogic?
body: <p>I am trying to send a csv file from snaplogic to an api endpoint using through a <strong>REST POST snap</strong> but it doesn't seem to actually send the file as the response says <strong>file not found</strong> </p>
  
  <p>when I do the post through postman it just fine and use the same information I use in the snap</p>
  
  <p>my settings in the POST snap are as follows:</p>
  
  <p><ul>
  <li><p>Label*= REST Post Service URL*=<a href="http://(ip:port)/v1/innovazones" rel="nofollow noreferrer"><a href="http://(ip:port)/v1/innovazones" rel="nofollow noreferrer">http://(ip:port)/v1/innovazones</a></a> HTTP</p></li>
  <li><p>entity=(blank) Batch size=(blank) Show all headers(selected) Single</p></li>
  <li><p>file upload: File=…/shared/TEMPcsv.csv Single file upload: File</p></li>
  <li><p>key=file Single file upload: Filename to be used=innovaZones_csv_file</p></li>
  <li><p>Upload transfer request type=calculate content length Upload body</p></li>
  <li><p>type=Multipart form data Single file upload: Multipart Content-Type=text/csv  </p></li>
  <li><p>HTTP header:</p></li>
  <li><p>Key=Content-Type;Value=application/x-www-form-urlencoded</p></li>
  <li><p>key=Authorization Value="Bearer " + account.access_token </p></li>
  <li><p>Trust all certificates*(checked) Follow redirects*(checked)</ul></p></li>
  
  I should be getting this message: </p>
  
  <pre><code>{
      "status": "success",
      "message": "Data transmitted successfully",
      "payload": {}
  }
  </code></pre>
  
  <p>but I get this in the response instead:</p>
  
  <blockquote>
    <p>"error": "REST API service endpoint returned error result: status code = 400, reason phrase = Bad Request"</p>
  </blockquote>
  
  <pre><code>"error_entity": {
      "status":"fail",
      "message":"File not found",
      "payload":{
           "message":"File not found",
           "statusCode":400,
           "status":"fail"
      }
   }
  </code></pre>
  
  <blockquote>
    <p>"original":  {filename:../shared/TEMPcsv.csv, result:overwritten, original:{, ...}} </p>
    
    <p>"filename": "../shared/TEMPcsv.csv"</p>
    
    <p>"result": "overwritten"</p>
  </blockquote>