1
Answer

How to get Full Path of Uploaded Images In Java Script

Ask a question
Vishal Shinde

Vishal Shinde

12y
6.4k
1


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)