jquery - how we make image file dynamic in javascript -


var file = $("#imgstep"+id)[0].files[0]; var filename = file.name; var filesize = file.size; 

i have problem multile files name in 1 function. first time file name other time error on

var file = $("#imgstep"+id)[0].files[0]; 

and show cannot read property 'files' of undefined.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -