Class Quform_Validator_FileUpload
- Quform_Validator_Abstract implements Quform_Validator_Interface
- Quform_Validator_FileUpload
Copyright:
Copyright (c) 2009-2022 ThemeCatcher (https://www.themecatcher.net)
Located at Quform/Validator/FileUpload.php
Located at Quform/Validator/FileUpload.php
public
|
|
public
boolean
|
|
protected
string
|
#
setFileUploadError( integer $errorCode, string $filename = '' )
Set the error message corresponding to the error code generated by PHP file uploads and this validator |
protected
boolean
|
|
protected
boolean
|
|
public static
array|string
|
#
getMessageTemplates( string|null $key = null )
Get all message templates or the single message with the given key |
public static
array
|
config(),
createMessage(),
error(),
getMessage(),
getTranslation(),
reset(),
setConfig(),
setMessage()
|
string |
REQUIRED
|
#
'fileUploadRequired'
|
string |
NUM_REQUIRED
|
#
'fileNumRequired'
|
string |
TOO_MANY
|
#
'fileTooMany'
|
string |
TOO_BIG_FILENAME
|
#
'fileTooBigFilename'
|
string |
TOO_BIG
|
#
'fileTooBig'
|
string |
NOT_ALLOWED_TYPE_FILENAME
|
#
'fileNotAllowedTypeFilename'
|
string |
NOT_ALLOWED_TYPE
|
#
'fileNotAllowedType'
|
string |
NOT_UPLOADED_FILENAME
|
#
'fileNotUploadedFilename'
|
string |
NOT_UPLOADED
|
#
'fileNotUploaded'
|
string |
ONLY_PARTIAL_FILENAME
|
#
'fileOnlyPartialFilename'
|
string |
ONLY_PARTIAL
|
#
'fileOnlyPartial'
|
string |
NO_FILE
|
#
'noFile'
|
string |
MISSING_TEMP_FOLDER
|
#
'fileMissingTempFolder'
|
string |
FAILED_TO_WRITE
|
#
'fileFailedToWrite'
|
string |
STOPPED_BY_EXTENSION
|
#
'fileStoppedByExtension'
|
string |
UNKNOWN_ERROR
|
#
'fileUnknownError'
|
string |
BAD_FORMAT
|
#
'fileBadFormat'
|
integer |
UPLOAD_ERR_TYPE
|
#
128
|
integer |
UPLOAD_ERR_FILE_SIZE
|
#
129
|
integer |
UPLOAD_ERR_NOT_UPLOADED
|
#
130
|
$config,
$message
|