Header location not working properly
问题 I have a php script that renders an image (with imagick) and saves it to some directory "SITE_ROOT.$filePath" , then does a header('Location: ' . SITE_ROOT.$filePath) , the file it redirects to is a png image. If I go to the path directly, like just type it in the URL bar I can save the image and everything works fine, however when I rely on the script to redirect me and I try to right click and save the image it doesn't recognise that I'm actually trying to save an image, it thinks I'm