Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file extension #3

Open
mehmetalikus opened this issue Aug 11, 2018 · 1 comment
Open

file extension #3

mehmetalikus opened this issue Aug 11, 2018 · 1 comment

Comments

@mehmetalikus
Copy link

mehmetalikus commented Aug 11, 2018

When i want to download my barcode its downloading as barcode.PHP. so this file extension may not effect us but there are other people who don't know how to change file extension. so add this line inside function output_image
for example:
case "png":
header('Content-Disposition: attachment; filename="anything.png"');

@cwchristerw
Copy link
Contributor

This will make browser to download file immeadiately. And there for I think this isn't intention of this function.

It's possible to make download_image function with this header 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants