简体   繁体   中英

How could I read file with javascript?

I'm using chrome now and I decide to convey a test about how to use javascript reading local file. Someone says it's easy but he uses IE, maybe on the chrome side things got a little diffrent, can someone show me how to do it?

Security considerations dictate that you don't have any access to the local filesystem through Javascript. You'd have to have your user upload the file to the server first.

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