harthur / kittydar

Face detection for cats in JavaScript - demo for TXJS 2012 talk
http://harthur.github.com/kittydar
MIT License
1.42k stars 172 forks source link

JS error when image is dropped onto the target #5

Open mislav opened 12 years ago

mislav commented 12 years ago

The error is:

ReferenceError: Can't find variable: FileReader

It's the same for any image.

Safari 5.1.7/Mac, no Adobe Flash on the system (if that's relevant)

harthur commented 12 years ago

Thanks for reporting. Looks like Safari isn't getting the JS File API until v6.

Until then kittydar should definitely add a regular old input="file" selector as backup.

alastairjepps commented 11 years ago

NetworkError: 404 Not Found - http://harthur.github.com/kittydar/bootstrap-dropdown.js"

if (!file.type.match(imageType)) {

TypeError: file is undefined http://harthur.github.com/kittydar/demo.js Line 64

Thats ff/linux btw same on chrome