_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
array
list of uploaded files that failed to validateget_files(mixed $index) : array
mixed
array
list of uploaded files that are validatedinstance() : \Upload
\Upload
is_valid() : bool
bool
true if static:$files contains uploaded files that are validlang_callback(int $error) : string
int
Number of the error message we want the language string for
string
Language string retrievedmove_callback(string $from, string $to) : bool
In Fuel 1.x this method is used for FTP uploads only
string
The FQFN of the file to move
string
The FQFN of the file destination
bool
Result of the move operationprocess(array $config) : void
array
register(string $event, mixed $callback) : void
Registers a Callback for a given event
string
The name of the event
mixed
callback information
save() : void
with_ftp(string | array $config, bool $connect)
string
array
The name of the config group to use, or a configuration array.
bool
Automatically 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