title: Laravel 4.2 + nginx return Input::file null
body: <p>I'm in a very strange situation:</p>
  <p>When I try to upload some file using <code>Form::file('image')</code> I get only null value.</p>
  <h2>the form</h2>
  <pre><code>{{ Form::open(['route' =&gt; 'admin.companies.store', 'class' =&gt; 'form', 'files' =&gt; true]) }}
  
  &lt;h3&gt;{{ trans('messages.companies.data_company') }}&lt;/h3&gt;
  
  &lt;div class=&quot;form-group&quot;&gt;
      {{ Form::label('image', trans('messages.companies.image')) }}
      &lt;div class=&quot;row&quot;&gt;
          &lt;div class=&quot;col-xs-4&quot;&gt;
              {{ Form::file('image') }}
              @include ('partials.validator_field', ['field' =&gt; 'image'])
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <hr />
  <h2>nginx</h2>
  <p>First I try to verify my nginx configuration but apparently it's ok.</p>
  <pre><code>server {
      listen 80;
      server_name www.example.com.build example.com.build;
      access_log /var/www/customers/example/logs/access.log;
      error_log /var/www/customers/example/logs/error.log;
      root /var/www/customers/example/example/public;
  
      client_max_body_size 100m;
  
      location / {
          sendfile on;
          client_max_body_size 200m;
          try_files $uri $uri/ /index.php$is_args$args;
          index  index.html index.htm index.php;
      }
  
      location ~ \.php$ {
          include /usr/local/etc/nginx/fastcgi_params;
          try_files $uri /index.php =404;
          fastcgi_index index.php;
          fastcgi_pass  127.0.0.1:9000;
          fastcgi_param SCRIPT_FILENAME /var/www/customers/example/example/public$fastcgi_script_name;
          fastcgi_param debug true;
      }
  }
  </code></pre>
  <hr />
  <h2>permissions</h2>
  <p>Then I try to give <strong>777</strong> permission to <code>app/storage</code>, <code>public/images</code> and <code>public/upload</code> (I'm using <strong>intervention/image</strong> upload package): same error, nothings change.</p>
  <hr />
  <h2>strange test</h2>
  <p>I test put a &quot;pure input file&quot; like that <code>&lt;input type=&quot;file&quot; name=&quot;teste /&gt;</code> and the upload works: PHP has received the image.</p>
  <hr />
  <h2>the final output (var_dump)</h2>
  <pre><code>$_FILES
  
  array(1) {
    [&quot;image&quot;]=&gt;
    array(5) {
      [&quot;name&quot;]=&gt;
      string(0) &quot;&quot;
      [&quot;type&quot;]=&gt;
      string(0) &quot;&quot;
      [&quot;tmp_name&quot;]=&gt;
      string(0) &quot;&quot;
      [&quot;error&quot;]=&gt;
      int(4)
      [&quot;size&quot;]=&gt;
      int(0)
    }
  }
  Input::file('image')
  
  NULL
  Input::all()
  
  array(31) {
    [&quot;_token&quot;]=&gt;
    string(40) &quot;GDaT0jqKmpmDyGw4BeRVW1tCb01T1ni5gvKoKCPg&quot;
    [&quot;name&quot;]=&gt;
    string(4) &quot;tste&quot;
    [&quot;description&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;corporate_name&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;company_segment_id&quot;]=&gt;
    string(1) &quot;4&quot;
    [&quot;company_relationship_id&quot;]=&gt;
    string(1) &quot;2&quot;
    [&quot;contract&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;state_registration&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;cnpj&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;cnae_session&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;address&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;street&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;street_number&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;street_complement&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;postalcode&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;neighborhood&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;state_id&quot;]=&gt;
    string(1) &quot;1&quot;
    [&quot;city_id&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;landmark&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;phone_comercial&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;phone_fax&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;phone_mobile_1&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;phone_mobile_2&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;site&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;skype&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;facebook&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;linkedin&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;youtube_channel&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;informations&quot;]=&gt;
    string(0) &quot;&quot;
    [&quot;active&quot;]=&gt;
    string(2) &quot;on&quot;
    [&quot;image&quot;]=&gt;
    NULL
  }
  </code></pre>
  <hr />
  <h2>infos</h2>
  <blockquote>
  <p>Nginx version: nginx/1.6.2</p>
  <p>PHP 5.6.6 (cli) (built: Mar  9 2015 00:40:37)
  Copyright (c) 1997-2015 The PHP Group
  Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies</p>
  <p>Mac OS Yosemite</p>
  </blockquote>
  <hr />
  <p>It's my first project using nginx.</p>
  <p>Sorry for my english.</p>