# Restriction file sizes/dimensions on PHP upload form?

**URL:** <https://forum.kirupa.com/t/restriction-file-sizes-dimensions-on-php-upload-form/161825>\
**Category:** Uncategorized\
**Created:** [September 7, 2005, 1:42pm UTC](https://forum.kirupa.com/t/restriction-file-sizes-dimensions-on-php-upload-form/161825 "2005-09-07T13:42:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zonabi](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@zonabi](https://forum.kirupa.com/u/zonabi)\
**Post date:** [September 7, 2005, 1:42pm UTC](https://forum.kirupa.com/t/restriction-file-sizes-dimensions-on-php-upload-form/161825/1 "2005-09-07T13:42:00Z")

</div>

does anyone know how to restrict file dimensions on a php upload form?

the idea is for an icon/avatar directory, where u can upload an icon-- but i dont want them uploading huge pictures.

how can i restrict the file size, and more importantly, the image’s dimensions to say, 100x 100 ?

thanks  
z
