HTML5 File API always returns DataURI of [object file]. What am I doing wrong?
问题 Today I have been attempting to make a thumbnail up loader which uses drag and drop and the file API. I feel as if i have got reasonably far. But the DataURI that is provided to be the source in my image file ALWAYS returns as [object file] and therefore doesn't show the image. Any help?! Thanks. Danny (below is my code) <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style> #thumbnailPreview { width:149px; height