title: Lumen request all, input, file null
body: <p>I have a really weird problem. I've search already the whole web for the solution and found nothing.</p>
  <p>I am not newbie in PHP.</p>
  <p>I use Lumen in my application. To send the data I use Postman.</p>
  <p>The problem is:</p>
  <p>$request-&gt;file() and $request-&gt;allFiles() returns NULL.</p>
  <p>But if I use PHP $_FILES then it shows all.</p>
  <p>Route:
  <code>$router-&gt;post('/import/create', 'CalendarController@importCreate');</code></p>
  <p>Controller:</p>
  <pre><code>public function importCreate(Request $request)
  {
          // Get uploaded CSV file
          $files = $request-&gt;allFiles();
  
          return response($files);
      }
  </code></pre>
  <p>This is what I get back:</p>
  <pre><code>{
      &quot;files&quot;: [
          {}
      ]
  }
  </code></pre>
  <p>(empty json array)</p>
  <p>But if I do like this:</p>
  <pre><code>return response($_FILES);
  </code></pre>
  <p>Then it works:</p>
  <pre><code>{
      &quot;files&quot;: {
          &quot;name&quot;: [
              &quot;logo.png&quot;
          ],
          &quot;type&quot;: [
              &quot;image/png&quot;
          ],
          &quot;tmp_name&quot;: [
              &quot;/tmp/phpjcjN4q&quot;
          ],
          &quot;error&quot;: [
              0
          ],
          &quot;size&quot;: [
              7278
          ]
      }
  }
  </code></pre>
  <p>What we can exclude::</p>
  <ol>
  <li><p>I use good Request import:
  <code>use Illuminate\Http\Request;</code></p>
  </li>
  <li><p>php.ini settings are OK:
  <a href="https://i.stack.imgur.com/w5euF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w5euF.png" alt="phpinfo1" /></a>
  <a href="https://i.stack.imgur.com/dsWlz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dsWlz.png" alt="phpinfo2" /></a>
  <a href="https://i.stack.imgur.com/zG3s5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zG3s5.png" alt="phpinfo3" /></a></p>
  </li>
  </ol>
  <p>The file I tried to upload has only 7KB, so its not the problem.</p>
  <ol start="3">
  <li>I use POST, and not PUT, so its not the problem.</li>
  </ol>
  <p>Postman Request:
  <a href="https://i.stack.imgur.com/k98SL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k98SL.png" alt="Postman Request" /></a></p>
  <p>What I also noticed that $request-&gt;all() and $request-&gt;input() both returns also NULL, even if I post anything.</p>
  <p>As I said I am not newbie in this, and I really appreciate your help.</p>
  <p>Anyone got any clue?
  Thanks in advance.</p>