+ 1

File downloading.

How i can download files?

5th Jun 2020, 3:51 PM
Václav Hajšman
Václav Hajšman - avatar
2 Respostas
+ 2
I think this function should work. If not, let me know. I'll troubleshoot the code in my PC function download(code,filename){ let blb = new Blob([code],{ "type":"text/plain" }); let bUrl = URL.createObjectURL(blb); let hlink = document.createElement('a'); hlink.href = bUrl; hlink.download = filename; hlink.click(); }
5th Jun 2020, 5:48 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
0
I need made IDE in web
5th Jun 2020, 3:52 PM
Václav Hajšman
Václav Hajšman - avatar