UPLOAD_ERR_USER_SIZE
UPLOAD_ERR_USER_SIZE
File is too big by the user-defined max size
HTTP upload class
make(string $dir, integer $maxSize, array $disallowedTypes = null, array $allowedTypes = null) : \Pop\Http\Upload
Make an upload object
string | $dir | |
integer | $maxSize | |
array | $disallowedTypes | |
array | $allowedTypes |
setDefaults() : \Pop\Http\Upload
Set default file upload settings
setUploadDir(string $dir) : \Pop\Http\Upload
Set the upload directory
string | $dir |
setMaxSize(integer $maxSize) : \Pop\Http\Upload
Set the upload directory
integer | $maxSize |
setAllowedTypes(array $allowedTypes) : \Pop\Http\Upload
Set the allowed types
array | $allowedTypes |
setDisallowedTypes(array $disallowedTypes) : \Pop\Http\Upload
Set the disallowed types
array | $disallowedTypes |
addAllowedType(string $type) : \Pop\Http\Upload
Add an allowed type
string | $type |
addDisallowedType(string $type) : \Pop\Http\Upload
Add a disallowed type
string | $type |
removeAllowedType(string $type) : \Pop\Http\Upload
Remove an allowed type
string | $type |
removeDisallowedType(string $type) : \Pop\Http\Upload
Remove a disallowed type
string | $type |
overwrite(boolean $overwrite) : \Pop\Http\Upload
Set the overwrite flag
boolean | $overwrite |