Asked 7 years ago
14 Jan 2017
Views 1040
sachin

sachin posted

how to download file in client side without use of server by JavaScript ?

in client side by JavaScript . to create a text file without use of server and prompt use to save it to his Computer.
possible problem ::
-> not able to use client side machine to save content or save file directly
We use temp memory and prompt to save file


Locally Creating files with JS
Rasi

Rasi
answered Nov 30 '-1 00:00

use Data URIs

data:[<MIME-type>][;charset=<encoding>][;base64],<data>


data URI is a base64 encoded string that represents a file , so it will fulfill your purpose

Post Answer