0

All examples I see on the HTML5/JS File API read the file by letting the user select the file first using

<input type="file">

I want to be able to read the contents of the file using a URL/path to the file. How can I achieve that?

1 Answer 1

1

This can not be done from the browser for security purposes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.