title: CodeIgniter From Post Data Not Going through
body: <p>Im trying to make a file upload in CodeIgniter, how ever when I add enctype="multipart form-data" no post data will go through. At all not even the other fields. However when i dont add it, i can get the other post data, but of course no file upload. Whats going wrong here. Here is my view and controller:</p>
  
  <p>View:</p>
  
  <pre><code>&lt;h2&gt;Add a New Album&lt;/h2&gt;
  &lt;form enctype="multipart/form-data"  method="post" action="&lt;?php echo base_url();?&gt;index.php/photo/newAlbum"&gt;
  
                              &lt;table style="margin-left:5px;"&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;     Album Name:&lt;/td&gt;
                                      &lt;td&gt;&lt;input type="text" name="name" /&gt;&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;     Photo .zip File:&lt;/td&gt;
                                      &lt;td&gt;&lt;input type="file" name="userfile" size="20" /&gt;&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;&lt;/td&gt;
                                      &lt;td&gt;&lt;input type="submit" value="Upload Photo File" /&gt;&lt;/td&gt;
                                  &lt;/tr&gt;
                              &lt;/table&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>controller only contains:</p>
  
  <pre><code>var_dump($_POST);
  </code></pre>
  
  <p>Result is:</p>
  
  <pre><code>array(0) { }
  </code></pre>