LSYii_ImageValidator
in package
Table of Contents
Methods
- validateImage() : array<string|int, mixed>
- A function to validate images, This don't validate file : must validate if file exist before.
Methods
validateImage()
A function to validate images, This don't validate file : must validate if file exist before.
public
static validateImage(array<string|int, mixed>|string $file) : array<string|int, mixed>
Parameters
- $file : array<string|int, mixed>|string
-
Either array with keys 'tmp_name' and 'type' or full file path