how I can display a file in the browser instead of being downloaded?
I read about the content-disposition header with inline type, but it doesn't works!
$response = new \Phalcon\Http\Response();
$response->setHeader('Content-Disposition','inline; filename=' . $filename);
$response->sendHeaders();
i'm doing some wrong, or exists another solution