title: Upload XML file in Phalcon
body: <p>I am trying to upload XML file to Phalcon application. I was looking for in <a href="http://docs.phalconphp.com/en/latest/api/Phalcon_Http_Request_File.html" rel="nofollow">documentation</a> and it does not help me I simply can not get any reaction from upload action below. Like it is not happening. </p>
  
  <p>Here is code from controller:</p>
  
  <p>
  
  <pre><code>class XmlController extends ControllerBase
  {
      public function initialize()
      {
          $this-&gt;view-&gt;setTemplateAfter('main');
          Phalcon\Tag::setTitle('Xml');
          parent::initialize();
      }
  
      public function indexAction()
      {
      }
  
      public function uploadAction(){
          if ($this-&gt;request-&gt;hasFiles() == true) { 
              print_r("Yes");
              //Print the real file names and their sizes
              foreach ($this-&gt;request-&gt;getUploadedFiles() as $file){
                  echo $file-&gt;getName(), " ", $file-&gt;getSize(), "\n";
              }
          }else{
              print_r("No");
          } 
  
          return $this-&gt;forward('xml/');
      }
  }
  </code></pre>
  
  <p>Here is code form view (as volt template)</p>
  
  <pre><code> {{ form('xml/upload', 'class': 'form-inline', 'method': 'post') }}
      &lt;span&gt;
          {{ file_field('xml', 'class': 'input-xxlarge', 'style' : 'font-size:15px; height:40px; margin-top: 3px;') }}
          {{ submit_button('Upload XML &amp;raquo;', 'class': 'btn btn-primary btn-large btn-success') }}
      &lt;/span&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I am trying to break the ice with simple XML </p>
  
  <pre><code>    &lt;?xml version='1.0'?&gt; 
  &lt;document&gt;
   &lt;title&gt;Forty What?&lt;/title&gt;
   &lt;from&gt;Joe&lt;/from&gt;
   &lt;to&gt;Jane&lt;/to&gt;
   &lt;body&gt;
    I know that's the answer -- but what's the question?
   &lt;/body&gt;
  &lt;/document&gt;
  </code></pre>
  
  <p>What could be happening?
  Is there some example of working file upload in phalcon?</p>