I have tried to upload file into server. But where it doesn't work that. This is my form.
<form action="index/upload" method="POST">
    <label>File</label>
    <input type="file" name="upFile">
    <input type="submit" name="upload">
</form>
This is my controller
public function uploadAction()
{
    $this->view->disable();
    if ($this->request->hasFiles() == true) {
        foreach ($this->request->getUploadedFiles() as $file){
               echo $file->getName(), ' ', $file->getSize(), '\n';
        }
    } else {
        echo 'File not uploaded';
    }
}
But it always return "File not uploaded".