dineshmatolia Posted March 1, 2008 Share Posted March 1, 2008 Hi I confronted with a problem.When provide the image file for downloading to user, it does not ask for download it simply show the file content means show the image. I include the below header in tpl file but it gives error like header already sent. header("Content-Disposition: attachment; filename=$attachfile"); Kindly help me to solve this problem. I am using smarty template with php. so I am to display the header into template file. Thanks & Regards dineshmatolia Quote Link to comment https://forums.phpfreaks.com/topic/93842-how-set-the-header-smarty-template-for-downloading-image-file/ 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.