Derleek Posted August 8, 2009 Share Posted August 8, 2009 Hi there. I need to change the 'save as' value of an image file when a user right clicks to download it. Is this even possible? Quote Link to comment Share on other sites More sharing options...
Derleek Posted August 8, 2009 Author Share Posted August 8, 2009 Let me clarify. I am sending a secure .jpg (secured w/ .htaccess) to my users using the header() and readfile() commands Quote Link to comment Share on other sites More sharing options...
zq29 Posted August 8, 2009 Share Posted August 8, 2009 I haven't tested this, but it might do the trick... header('Content-Disposition: inline; filename="'.$filename.'"'); Quote Link to comment Share on other sites More sharing options...
Derleek Posted August 12, 2009 Author Share Posted August 12, 2009 That is essentially what I did =) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.