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