0

It seems impossible to use the webkitRequestFileSystem method from a local file without some sort of debug switch being passed to Chrome when it's run. Is there a way to ask a user for permission to save a text file (one that they have requested anyway) that is generated by javascript in a locally run html app/file?

Resist Design
  • 4,462
  • 3
  • 22
  • 35

1 Answers1

2

Kind of, as long as it is not too much data and you don't need to support older versions of IE. You can do it with a Data URI.

10000173 shows the technique, and 283956 has some answers on how you can't easily specify the filename that the browser chooses.

Community
  • 1
  • 1
Dan F
  • 11,958
  • 3
  • 48
  • 72