1

i uses html5 upload

    try{
        var reader = new FileReader();
        reader.onerror = function(e) {
        };
        reader.onload = function(e) { 
        };
        reader.readAsText(file);
    }catch(e){

    }

but in safai when i upload a .torrent file ,it go to catch , and e is :

"message: "Can't find variable: FileReader"

2 Answers 2

1

According to the browser status Safari should support FileReader:

http://caniuse.com/#search=filereader

Most likely the error is somewhere else in your code and the question is incomplete for you to get answer here. I suggest you more necessary details to your question, like a repeatable error example on jsfiddle.net, Safari version number and so on.

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

3 Comments

Safari 5.1 is the latest version of Safari available for Windows, and the web page you pasted said that the FileReader API is not supported in 5.1.
Good point, though I think there little reason for Windows users to use Safari and very few do.
I agree. I was naively using it to try to reproduce some issues that some Mac Safari users were seeing . . . I hadn't realized that it's essentially been discontinued on Windows . . .
0

This error can occur when using Lockdown mode - as FileReader is not available.

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.