On the handleDrop function check to see whether "file" is defined.
This fixed a console error I noticed in Chrome 24.
On the handleDrop function check to see whether "file" is defined
How would you replicate that console error? I've tried a couple of things but I haven't managed to produce an error in Chrome 24.
Drag and drop another image on the page (i.e. the logo) and I get "Uncaught TypeError: Cannot read property 'type' of undefined - avatar.js:71".
Can you confirm you get this too?
Merge pull request #1 from jbate/master
Check file is defined