Read the contents of a “file” object?
问题 So I have a "File" object (retrieved by handling file drag and drop from desktop). I can send the files to the server with ajax, and then throw them back for javascript to handle them. But is it possible to read the contents of it without doing all this? Here, play around with this fiddle. Drag any file to the box and use the variable file . I've already tried all of the methods of this object...no luck. Can you get the contents of the file you just dragged into the browser? PS: I would send