title: Laravel file upload over API HTTP PUT works locally but does not on AWS
body: <p>I have a simple Laravel app with endpoints for file upload.</p>
  <p>When I call <code>POST</code> endpoint to create (and upload) brand new file, everything works on both local (docker) and AWS.</p>
  <p>I do <code>HTTP POST</code> to <code>api/file</code> with payload:</p>
  <p><a href="https://i.stack.imgur.com/Kukcr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kukcr.png" alt="enter image description here" /></a></p>
  <p>I pick file from my desktop, provide name, type and model's UUID (polymorphic relationship).</p>
  <p>However… when I want to overwrite this file I have a <code>HTTP PUT</code> endpoint: <code>api/file/&lt;UUID OF PREVIOUSLY UPLOADED FILE&gt;</code> with payload:</p>
  <p><a href="https://i.stack.imgur.com/Xcrim.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xcrim.png" alt="enter image description here" /></a></p>
  <p>The issue is bizarre because I don't get any PHP issues. Laravel simply cannot pass the validation because it somehow completely DOES NOT SEE the payload on AWS. On local (docker) this works with no issues whatsoever.</p>
  <p>I'm pretty sure this is AWS related but I'm running out of clues what is the culprit. Below is the validation message bag but I swear I pass <code>type</code> and <code>model_uuid</code> (screenshot number 2).</p>
  <pre><code>{
      &quot;error&quot;: [
          &quot;Model type is required.&quot;,
          &quot;Model UUID is required.&quot;
      ]
  }
  </code></pre>