Formulario en cakePHP:
<div class="btn boton btn-default btn-file col-md-7" style="padding-bottom: 4%;">
<?php
echo $this->Form->create(
'Ordenmateriale',
array(
'id' => 'formulario',
'class' => 'boton',
'type' => 'file'
)
);
?>
<?php
echo $this->Form->input(
'archivo',
array(
'type' => 'file',
'class' => 'boton',
'label'=>' <i class="fa fa-paperclip"></i> <br>Migrar Datos :'
)
);
?>
</div>
<div class="col-md-12" style="margin-top: 2%;">
<?php
echo $this->Form->submit(
'Adjuntar Archivo',
array(
'class' => 'btn btn-primary boton col-md-3 ',
'title' => 'Click Aqui para Adjuntar',
'onclick' => 'return validar();'
)
);
echo $this->Form->end();
?>
</div>