title: Is it possible to attach an uploaded file to http request?
body: <p>I have a form that submits a file to an endpoint. In theory that endpoint takes the file and attaches it to another post request that goes to the API. </p>
  
  <p>I was trying to figure out how to do it with Laravel and read a few things that suggest it's not possible? That the only solution would be save it in a public place and submit the link to the API. Anyone able to shed some light on this? Below is the code that I thought would work but does not send the file.</p>
  
  <pre><code>$this-&gt;client-&gt;post('/api/endpoint', ['form_params' =&gt; ['file' =&gt; $request-&gt;file('file')-&gt;getRealPath()]])
  </code></pre>
  
  <p>Client being the Guzzle client. </p>