ShuDudu's Home was started in 2011, but the web data is lost, so now begin again, I would like to make some friends, I hope you like ShuDudu's home.
Current position: ShuDudu > Life >

[JS]Determine whether the uploaded file is an image code

Tuesday on August 30th, 2005Life

Determine whether the uploaded file is an image. If it shows the width and height of the picture.

------------------------------------

<FORM name=form action="" method=post encType=multipart/form-data><INPUT onpropertychange=document.all.aaaa.src=this.value type=file name=upload><BR width: INPUT name=W high: INPUT name=H BR><INPUT type=submit value= submit><IMG style= POSITION: absolute; TOP: -100000px onerror='alert(wrong type or target does not exist);' onload={document.all.W.value=this.width;document.all.H.value=this.height;} name=aaaa></FORM>

------------------------------------
Source: 51Windows

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/life/JS-Determine-whether-the-uploaded-file-is-an-image-code.htm