我想要 Javascript 获取文件输入并将其保存到本地路径
I want Javascript which gets the file input and save it to local path
我想要Javascript获取文件输入并将其保存到本地路径
<input type="file" name="attachment1" id="attachment1" style="width:500;">
<script>
//Javascript--variable to assign the above file and its name
//Then save it to local path(some where in C drive)
</script>
JavaScript 是一种通常在本地计算机上运行的语言。因此,每次向运行代码的电脑发送 JavaScript.
时,您都会向该电脑发送一个潜在的线程
为了防止滥用,计算机受到保护,不会做有害的事情,例如自动下载病毒并将它们存储在 C 盘的某个位置。
但是,如果您想将其保存在服务器上,请查看 Node.js。
我想要Javascript获取文件输入并将其保存到本地路径
<input type="file" name="attachment1" id="attachment1" style="width:500;">
<script>
//Javascript--variable to assign the above file and its name
//Then save it to local path(some where in C drive)
</script>
JavaScript 是一种通常在本地计算机上运行的语言。因此,每次向运行代码的电脑发送 JavaScript.
时,您都会向该电脑发送一个潜在的线程为了防止滥用,计算机受到保护,不会做有害的事情,例如自动下载病毒并将它们存储在 C 盘的某个位置。
但是,如果您想将其保存在服务器上,请查看 Node.js。