Reading files from hard drive with javascript

后端 未结 3 1213
南方客
南方客 2021-01-23 20:05

My application creates .xml files and stores them on the user\'s hard drive; there is a default folder that I set in the web.xml to store the files, le

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-23 20:09

    You cant access local filesystem using javascript. For accessing the file using javascript , you have to upload it to a server and access it using the files url.

提交回复
热议问题