ThemeShaper Forums » Thematic


Forced download of .jpg via PHP as function?

(1 post)
  • Started 11 years ago by Manuel
  • This topic is not a support question
  1. Could this code (which forces e.g. a .jpg to get downloaded instead of parsed by the browser and opened) made into a function somehow, so that you can assign it to a specific .jpg?

    header("Content-Disposition: attachment; filename=".basename($outputFile).";"

    I have no idea if this would even make sense to put it in the functions.php.

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.