Vishal Shinde

Vishal Shinde

  • NA
  • 25
  • 46.4k

How to get Full Path of Uploaded Images In Java Script

Dec 16 2011 11:47 PM


Hi Every One


    function getImgSize()
    {

    var id=document.getElementById("FileUpload1").value;  
    alert(id);
    var classimage= new Image();  
    classimage.src=id;
 
    alert(classimage.width);
    alert(classimage.height);
   

    }


  using this function i get width and height of Uploaded Images in Java Script it will work only Internet Explorer.


               but i need to get width and height of Uploaded Images in Mozilla FireFox how to get in Java Script

    and   also how to get full path of Uploaded images in jave Script

   i am using FileUpload Control of asp.net 



Plz Help Me

Thanks




Answers (1)