liu
liu

Reputation: 1

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?

Upvotes: 0

Views: 2874

Answers (1)

Peter Nixey
Peter Nixey

Reputation: 16575

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.

Upvotes: 1

Related Questions