Forum Moderators: coopster
header('Content-Disposition: attachment; filename="' . substr(realpath($_GET['f']), strlen($dir['path']['doc'])) . '"'); that sets the filename, but also makes the file attachment. That's what I want if the case is download but not with images or other inline media.
I cannot find a header that only changes the name... Someone with the solution?