I hereby claim:
- I am deepdivedylan on github.
- I am deepdivedylan (https://keybase.io/deepdivedylan) on keybase.
- I have a public key ASDbt-TOZNFsu3hEZqyOu84xpm9c19qIspx2qltSKFSh4Qo
To claim this, I am signing this object:
<?php | |
/** | |
* validates an image upload | |
* | |
* @param string $inputName index name in the $_FILES super global | |
* @param array $acceptedTypes accepted file types, defaults to JPEG and PNG | |
* @return resource valid image when image is detected as valid | |
* @throws InvalidArgumentException if the image is not valid | |
**/ | |
function validateImage(string $inputName, array $acceptedTypes = ["image/jpeg", "image/png"]) { |
I hereby claim:
To claim this, I am signing this object: