I would like to know, is it possible to create files using javascript? If yes, please give examples. I would be very happy to hear from you.
Thanks in advance!
|
1 answer
You can use the FileSystem API (the files will be in the sandbox), you can wrap text / image in Blob and download using the link (here's a great little library , I recommend).
- Thank you very much! - Wicopee
- And you can save without downloading, and for example the root folder of the site? - Wicopee
- @Wicopee, yes, only this is the other way around. You need to decide on the format in which to send data (you can directly in the request body, and the parameters in GET or headers, you can use multipart / form-data ) to form a request and send it with XMLHttpRequest . - Surfin Bird
|
Можно- Venta