PHP Trait Josegonzalez\Upload\Validation\Traits\UploadValidationTrait

Afficher le fichier Open project: josegonzalez/cakephp-upload

Méthodes publiques

Méthode Description
isAboveMinSize ( mixed $check, integer $size ) : boolean Check that the file is above the minimum file upload size
isBelowMaxSize ( mixed $check, integer $size ) : boolean Check that the file is below the maximum file upload size
isCompletedUpload ( mixed $check ) : boolean Check that the file was completely uploaded
isFileUpload ( mixed $check ) : boolean Check that a file was uploaded
isSuccessfulWrite ( mixed $check ) : boolean Check that the file was successfully written to the server
isUnderFormSizeLimit ( mixed $check ) : boolean Check that the file does not exceed the max file size specified in the HTML Form
isUnderPhpSizeLimit ( mixed $check ) : boolean Check that the file does not exceed the max file size specified by PHP

Method Details

isAboveMinSize() public static méthode

Check that the file is above the minimum file upload size
public static isAboveMinSize ( mixed $check, integer $size ) : boolean
$check mixed Value to check
$size integer Minimum file size
Résultat boolean Success

isBelowMaxSize() public static méthode

Check that the file is below the maximum file upload size
public static isBelowMaxSize ( mixed $check, integer $size ) : boolean
$check mixed Value to check
$size integer Maximum file size
Résultat boolean Success

isCompletedUpload() public static méthode

Check that the file was completely uploaded
public static isCompletedUpload ( mixed $check ) : boolean
$check mixed Value to check
Résultat boolean Success

isFileUpload() public static méthode

Check that a file was uploaded
public static isFileUpload ( mixed $check ) : boolean
$check mixed Value to check
Résultat boolean Success

isSuccessfulWrite() public static méthode

Check that the file was successfully written to the server
public static isSuccessfulWrite ( mixed $check ) : boolean
$check mixed Value to check
Résultat boolean Success

isUnderFormSizeLimit() public static méthode

Check that the file does not exceed the max file size specified in the HTML Form
public static isUnderFormSizeLimit ( mixed $check ) : boolean
$check mixed Value to check
Résultat boolean Success

isUnderPhpSizeLimit() public static méthode

Check that the file does not exceed the max file size specified by PHP
public static isUnderPhpSizeLimit ( mixed $check ) : boolean
$check mixed Value to check
Résultat boolean Success