In CakePHP view, When I try this code
<?php echo $form->input('download_link', array('type'=>file)); ?>>
whose HTML output is
<input type="file" name="data[Publication][download_link]" value="" id="PublicationDownloadLink" />
is not working
but Plain HTML form in same view is working
<input type="file" name="download_link" class="engInput" />
Could somebody please explain why? Thanks in advance.
code$test=$_FILES["download_link"]["type"]; var_dump($test);codeCakePHP code returns null but Plain HTML returns file type.$this->dataor$this->request->data. Mixing and matching reserved PHP variables and Cake is probably not wise at this particular point.