Uncaught TypeError: fs.createWriteStream is not a function

前端 未结 1 566
陌清茗
陌清茗 2021-01-05 12:20

I want to make a pdf file on client-side and afterwards it has to be send server-side through a REST call.

With the generation of the file, I have no problem. I use

相关标签:
1条回答
  • 2021-01-05 12:39

    You are confusing the server and the client. The browser has no programmatic access to the filesystem. Period. The filesystem api is triggered only via user interaction (like dragging and dropping a file on the webpage). You cannot write a file locally on the client.

    0 讨论(0)
提交回复
热议问题