I am trying to download a text file that i created using the file space api on chrome. I am unable to download it. I can only view it on the chrome browser itself.
location.href = fileEntry.toURL();
That is the line of code i currently use to download it.
Could i use content-disposition to force download a .txt file? if so, how?