[eluser]TheFuzzy0ne[/eluser]
You could also extend the Upload library to allow for extra configuration options, although your method certainly looks simpler.
I tried using this "getimagesize" but it only works after file uploading done.But i need to check before file uploading.If it not fits in criteria then no need to upload that file...
[quote author="TheFuzzy0ne" date="1366387040"]You could also extend the Upload library to allow for extra configuration options, although your method certainly looks simpler.[/quote]