bgrins / filereader.js

A lightweight wrapper for the JavaScript FileReader interface
http://bgrins.github.com/filereader.js/
MIT License
413 stars 86 forks source link

Add a readAs: 'AutoDetect' option #1

Closed bgrins closed 13 years ago

bgrins commented 13 years ago

This would choose the 'readAs' option based on the content type of the file. This way a text file and image could be read using the same drop zone/input, without needing to add in a special callback to return the correct mode to read as.

The question is what should be default action be for all different types, and would there be a way to override the default

bgrins commented 13 years ago

Fixed this with readAsMap