Hola..!!
public function download(){
$pic = Input::get('name');
$pics = array('fireworks', 'stadium', 'trophy');
View::template(NULL);
View::select(NULL);
if(in_array($pic, $pics)){
$file = dirname(APP_PATH) . '/public/img/' . $pic . '.jpg';
if (file_exists($file)){
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment;
filename='.basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0,
pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
ob_clean();
flush();
readfile($file);
> visualizar correctamente sin problemas, alguien tiene alguna idea? --
> Viva KumbiaPHP Framework!
>
http://www.kumbiaphp.com/
> Ha recibido este mensaje porque est� suscrito a Grupo "KumbiaPHP
> Framework" de Grupos de Google.
> Para obtener m�s opciones, visita este grupo en
>
http://groups.google.com/group/kumbia?hl=es.