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

Controlling Blob URL's #8

Closed
joeedh opened this issue May 28, 2015 · 3 comments
Closed

Controlling Blob URL's #8

joeedh opened this issue May 28, 2015 · 3 comments

Comments

@joeedh
Copy link

joeedh commented May 28, 2015

Hi. I have several HTML5 apps I work on, all of which allow users to save files locally. I can't seem to figure out how to control the URL so the users aren't downloading files with gibberish names, or how to force the browser to open a Save As dialog.

Anyway, any help would be greatly appreciated.

@annevk
Copy link
Member

annevk commented Jun 9, 2015

Have you tried using <a download>?

@cvrebert
Copy link
Member

(Note that <a download> doesn't work in Safari; see http://wkbug.com/102914)

@inexorabletash
Copy link
Member

re: controlling the name: as @annevk states, <a download> is for.
re: "Save As" dialog - that's a user agent option as to whether to show UI or automatically place the file in a dedicated Downloads folder.

I can imagine a feature request for e.g. File.saveAs(optional filename) but I wouldn't do that by controlling the URL.

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