_init()
get_errors()
get_files()
instance()
is_valid()
lang_callback()
move_callback()
process()
register()
save()
with_ftp()
$upload
$with_ftp
UPLOAD_ERR_CANT_WRITE
UPLOAD_ERR_DUPLICATE_FILE
UPLOAD_ERR_EXTENSION
UPLOAD_ERR_EXT_BLACKLISTED
UPLOAD_ERR_EXT_NOT_WHITELISTED
UPLOAD_ERR_FORM_SIZE
UPLOAD_ERR_FTP_FAILED
UPLOAD_ERR_INI_SIZE
UPLOAD_ERR_MAX_FILENAME_LENGTH
UPLOAD_ERR_MAX_SIZE
UPLOAD_ERR_MIME_BLACKLISTED
UPLOAD_ERR_MIME_NOT_WHITELISTED
UPLOAD_ERR_MKDIR_FAILED
UPLOAD_ERR_MOVE_FAILED
UPLOAD_ERR_NO_FILE
UPLOAD_ERR_NO_TMP_DIR
UPLOAD_ERR_OK
UPLOAD_ERR_PARTIAL
UPLOAD_ERR_TYPE_BLACKLISTED
UPLOAD_ERR_TYPE_NOT_WHITELISTED
Upload Class
| package | Fuel |
|---|---|
| category | Core |
| link | http://docs.fuelphp.com/classes/upload.html |
_init()
get_errors(mixed $index) : array
mixed
arraylist of uploaded files that failed to validateget_files(mixed $index) : array
mixed
arraylist of uploaded files that are validatedinstance() : \Upload
\Uploadis_valid() : bool
booltrue if static:$files contains uploaded files that are validlang_callback(int $error) : string
intNumber of the error message we want the language string for
stringLanguage string retrievedmove_callback(string $from, string $to) : bool
In Fuel 1.x this method is used for FTP uploads only
stringThe FQFN of the file to move
stringThe FQFN of the file destination
boolResult of the move operationprocess(array $config) : void
array
register(string $event, mixed $callback) : void
Registers a Callback for a given event
stringThe name of the event
mixedcallback information
save() : void
with_ftp(string | array $config, bool $connect)
stringarrayThe name of the config group to use, or a configuration array.
boolAutomatically connect to this server.
$upload : object
$with_ftp : object
UPLOAD_ERR_CANT_WRITE
UPLOAD_ERR_DUPLICATE_FILE
UPLOAD_ERR_EXTENSION
UPLOAD_ERR_EXT_BLACKLISTED
UPLOAD_ERR_EXT_NOT_WHITELISTED
UPLOAD_ERR_FORM_SIZE
UPLOAD_ERR_FTP_FAILED
UPLOAD_ERR_INI_SIZE
UPLOAD_ERR_MAX_FILENAME_LENGTH
UPLOAD_ERR_MAX_SIZE
UPLOAD_ERR_MIME_BLACKLISTED
UPLOAD_ERR_MIME_NOT_WHITELISTED
UPLOAD_ERR_MKDIR_FAILED
UPLOAD_ERR_MOVE_FAILED
UPLOAD_ERR_NO_FILE
UPLOAD_ERR_NO_TMP_DIR
UPLOAD_ERR_OK
UPLOAD_ERR_PARTIAL
UPLOAD_ERR_TYPE_BLACKLISTED
UPLOAD_ERR_TYPE_NOT_WHITELISTED