Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
- {
- // get bytearray
- $jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
- // add headers for download dialog-box
- header('Content-Type: image/jpeg');
- header("Content-Disposition: attachment; filename=".$_GET['name']);
- echo $jpg;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement