Home > Blockchain >  Js - Create a file and save it to a specific folder in the project
Js - Create a file and save it to a specific folder in the project

Time:11-08

I created an excel file via javascript, but when I need to save it the only option is to have the user open the download window and download the file. I, on the other hand, would like the file to simply be stored in a folder in my project, without the user having the option to download the file.

How can I do this? Thank you

CodePudding user response:

You don't provide enough information but seems that you are doing it on the client side (i.e. a browser), which, in principle, does not have access to the file system on your computer/server.

You should try some Back-end approach, like, in your case with JavaScript: Node.js, or maybe anothers like Python or PHP.

  • Related