In my cake view, I have the following form:
<form enctype="multipart/form-data" action="<?php echo $this->base; ?>/reviews/upload/" method="post" target="_blank">
<input type="file" id="file" name="file" />
<input type="submit" />
</form>
In the ReviewsController, in the upload() method there is:
public function upload() {
var_dump($this->request->data);
}
but it's always empty! I already tried "this->request", "this->data" but it's always empty. What am I doing wrong?