PHP Trait Josegonzalez\Upload\Validation\Traits\UploadValidationTrait

Datei anzeigen Open project: josegonzalez/cakephp-upload

Public Methods

Method 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 method

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
return boolean Success

isBelowMaxSize() public static method

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
return boolean Success

isCompletedUpload() public static method

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

isFileUpload() public static method

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

isSuccessfulWrite() public static method

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

isUnderFormSizeLimit() public static method

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
return boolean Success

isUnderPhpSizeLimit() public static method

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
return boolean Success