php - Upload an image in jquery without any api -


i want upload image folder , return name of image(name of image should random number) on click of div searched lot not fit result

<div id="click">    <img src="<?php echo base_url('public/img/avatar.png');?>">  </div> 

maybe misunderstanding question, try answer you. can not pure jquery. remember jquery client side, unless have api or server side app running waiting jquery send image not able save it.

remember, file name given @ moment of saving in folder on server.

after server has saved image(s) can return name, jquery can grab , work it.

hope helps


Comments