[英]is it possible to read/write from/to a txt file using JavaScript?
is it possible to read/write from/to a txt file using JavaScript, and this file be uploaded to the server and anyone can access it, literally saying, using this txt file as a database? 是否可以使用JavaScript从txt文件读取/写入txt文件,并将该文件上传到服务器,并且任何人都可以使用该txt文件作为数据库进行访问?
NOTE: I don't mean the browser's side, I mean to the same place the website is uploaded "the server's side" 注意:我的意思不是浏览器,而是网站上传到服务器的同一位置。
you will have to use http communication with your server handling storage 您将必须与服务器处理存储使用http通信
heres how it can be implemented 这是如何实现的
<form enctype="multipart/form-data" action="/upload/image" method="post">
<input id="image-file" type="file" />
</form
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.