RubaXa jquery.fileapi setting preview el class -



RubaXa jquery.fileapi setting preview el class -

it possible set dynamically class of element contain preview of file based of file type? illustration image file have:

preview:{"width":100,"height":100,"el":".image-div-class"}...

and txt file have

preview:{"width":100,"height":100,"el":".text-div-class"}...

thank you

to append not image files type different div need use:

preview:{"width":100,"height":100,"el":".image-div-class""get": function ($el, file) { $el.appendto(".file-type-'+file.name.split('.').pop()+'").append("<p>"+file.name+"</p>");; }}

jquery fileapi

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -