I want to invoke the file save as prompt while allowing the user to download a file in ExtJS from a URL. Basically the idea is to allow the user to change the file name and select his desired location before saving the file on their machine.
Is there any way I could do this?
I do not want to use:
- A server side code to send the headers.
- Nor do I want to use the Flash-based Downloadify library to do this.
- Also,
<a>
tag's "download" attribute does download the file, but it does not prompt the dialog box if the browser settings are not set right.
Is there any way apart from the above where we could handle the file download in our application?