简体   繁体   中英

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?

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

heres how it can be implemented

<form enctype="multipart/form-data" action="/upload/image" method="post">
    <input id="image-file" type="file" />
</form

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM