query($query); $row = $result->fetch(); header("Content-length: " . $row['file_size']); header("Content-type: " . $row['mime_type']); header("Content-Disposition: attachment; filename=" . $row['file_name']); echo $row['file']; } catch (Exception $e) { echo TRANS('MSG_ERR_GET_DATA'); echo "
Retorno: " . $e->getMessage(); return; } return; } ?>