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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to name QR Code images? #19

Open
bkrall opened this issue Mar 1, 2017 · 3 comments
Open

How to name QR Code images? #19

bkrall opened this issue Mar 1, 2017 · 3 comments

Comments

@bkrall
Copy link

bkrall commented Mar 1, 2017

Right now all of my generated QR codes download as "download", I noticed in the example that they are called "qrcode" but not seeing how to set that explicitly.

Any info would be 馃憤

@zpao zpao mentioned this issue Apr 28, 2017
@zpao
Copy link
Owner

zpao commented Apr 28, 2017

This shouldn't be working on the demo page - it's not doing anything special (and it downloads as "download.png" for me).

I filed #29, which would expose the API for you to do this yourself with a bit more code - will update the demo if that happens.

@anthonyringoet
Copy link

If you are using an html anchor tag and fill the href property with something like canvas.toDataURL(), you can set the a.download attribute to choose a file name.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes

@edemen
Copy link

edemen commented Oct 16, 2022

I am also very interested in being able to set the default download name size with native right-click-save-as user behaviour.

But seeing that this issue is from 2017... hm...

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

4 participants