John Henckel
John Henckel

Reputation: 11347

How to prompt user for download with HTML5

I'm using chrome and I have a link like this

<a href="http://textfiles.com/100/ad.txt" download="foo.txt">try me</a>

according to MDN ...

[download] is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want).

However, when I click the link with Chrome it does not allow me to change the name.

Is this a bug in chrome?

Is there a way to work around, so that it will allow user to change the name?

Upvotes: 1

Views: 195

Answers (1)

John Henckel
John Henckel

Reputation: 11347

After more research I think it is not possible. The browsers all do whatever they want, and the MDN has little to say about it.

see https://stackoverflow.com/a/27525335/1812732

Upvotes: 1

Related Questions