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.
It should be:
(Note the quotes around
file)