How to get the contents of the directory from local PC in javascript

前端 未结 8 2346
轮回少年
轮回少年 2020-12-31 20:13

How to get the contents of the directory from local PC in javascript/jQuery? For example from C:\\Images

8条回答
  •  萌比男神i
    2020-12-31 20:44

    You could write a script using a technology like php, ruby, java which will list all files and then send this information via ajax to Your browser.

    But You can't do this only via javascript because of security restrictions.

提交回复
热议问题