Hi trollacioud,
Is it important? I just want to check the image size by javascript before uploading to server.. I dont want to use server side to check the image size, I want to use JS...
Thanks,
I wanna check the image size before uploading to the server. Here is my code until now
<html>
<body>
<input type="file" id ="imageid" />
<input type="button" onClick="check()" value="check button"/>
</body>
</html>
<script language="javascript" type="text/javascript">
<!--
function check() {...
Hi all,
I'm getting image size in FF but I couldn't.
image = new Image();
image.src = 'location';
then image.width and image.height just return 0
It's working with IE but FF. I have already searched but can't find any solution. Please help me, thanks very much :)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.