jquery - Which browser features should be tested to pick the correct file upload plugin? -


we have wrapped flash-based uploadify , html5 based uploadifive uploaders in new plugin, don't have supply 2 sets of options time.

this hides nasty name , feature changes made between 2 plugin versions (why oh why did not make settings compatible or wrap both controls themselves???).

the problem had detecting when use each uploader version. if detect modernizr.canvas tries use html5 uploader on ie9 (which has canvas not html5 far file uploading goes).

what accurate browser features test in specific instance?

i found answer: how determine presence of html5 drag'n'drop file upload api (like 1 ff3.6) trick nicely (not main answer 1 of followups):

if (!!window.filereader && modernizr.draganddrop) {   // sexy drag , drop action } else {   // no drag , drop support available :( } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -