PHP File upload array empty
<p>I am having trouble with an upload form  Was previously working but not sure what happened to make it non-functional.  When I upload a file with this form:</p>

<pre><code>&lt;form action="http://localhost/index.php/sales/quickadd/" method="post" accept-charset="utf-8" id="quickadd" class="inlineform" enctype="multipart/form-data"&gt;
        &lt;div class="grid_12"&gt;
            &lt;fieldset class="formfldset"&gt;
                &lt;legend&gt;Sales Sheet Quick Add&lt;/legend&gt;
                &lt;label for="sales_date" style="width: 15em; "&gt;Sales Date&lt;/label&gt;&lt;input type="text" name="sales_date" value="" id="sales_date" class="datepicker hasDatepicker"&gt;&lt;br&gt;
                &lt;label style="width: 15em; "&gt;Location&lt;/label&gt;
                    &lt;select id="locations_id" name="locations_id"&gt;
                &lt;option value="23"&gt;Beer Tavern&lt;/option&gt;&lt;/select&gt;&lt;br&gt;
                &lt;label for="import_file" style="width: 15em; "&gt;Import File&lt;/label&gt;&lt;input type="file" name="import_file" value="" id="import_file"&gt; - &lt;a href="#" id="guidelines"&gt;Import file guidelines&lt;/a&gt;&lt;br&gt;
                &lt;label style="width: 15em; "&gt;Show Import Warnings&lt;/label&gt; &lt;input type="checkbox" name="showimportwarnings" checked=""&gt;&lt;span class="systemwarning"&gt;&amp;nbsp; -- recommend leaving checked&lt;/span&gt;&lt;br&gt;&lt;br&gt;
                &lt;div class="systemwarning"&gt;Leaving the import file blank will create a Sales Sheet with all active sales items for the selected location.&lt;/div&gt;
            &lt;/fieldset&gt;
                &lt;button name="submit" type="submit" id="submit" value="Add" formnovalidate="formnovalidate" class="" title="Add New Sales Sheet"&gt;Add New Sales Sheet&lt;/button&gt;&lt;br&gt;

        &lt;/div&gt;
 &lt;/form&gt;
</code></pre>

<p>After submitting the form, I do a var_dump($_FILES) and get an empty array.  I am expecting to be able to detect the file and process it. This print statement never gets called.</p>

<pre><code>if($_FILES['import_file']['tmp_name'] != '')
{
      echo 'print here';
}
</code></pre>

<p>The file is only 2.7kb and the max upload is set to 2MB.  I don't get any errors printed out or in apache log files.  I have E_ALL error reporting for php.  I hope there is something simple that I just forgot.  I'm using codeigniter.   </p>

<p>TIA</p>
