Skip to content

UploadHandler

  • Full name: \UploadHandler

Constants

Constant Visibility Type Value
IMAGETYPE_GIF public 'image/gif'
IMAGETYPE_JPEG public 'image/jpeg'
IMAGETYPE_PNG public 'image/png'

Properties

options

protected $options

error_messages

protected $error_messages

image_objects

protected $image_objects

response

protected $response

Methods

__construct

public __construct(mixed $options = null, mixed $initialize = true, mixed $error_messages = null): mixed

Parameters:

Parameter Type Description
$options mixed
$initialize mixed
$error_messages mixed

initialize

protected initialize(): mixed

get_full_url

protected get_full_url(): mixed

get_user_id

protected get_user_id(): mixed

get_user_path

protected get_user_path(): mixed

get_upload_path

protected get_upload_path(mixed $file_name = null, mixed $version = null): mixed

Parameters:

Parameter Type Description
$file_name mixed
$version mixed

get_query_separator

protected get_query_separator(mixed $url): mixed

Parameters:

Parameter Type Description
$url mixed

get_download_url

protected get_download_url(mixed $file_name, mixed $version = null, mixed $direct = false): mixed

Parameters:

Parameter Type Description
$file_name mixed
$version mixed
$direct mixed

set_additional_file_properties

protected set_additional_file_properties(mixed $file): mixed

Parameters:

Parameter Type Description
$file mixed

fix_integer_overflow

protected fix_integer_overflow(mixed $size): mixed

Parameters:

Parameter Type Description
$size mixed

get_file_size

protected get_file_size(mixed $file_path, mixed $clear_stat_cache = false): mixed

Parameters:

Parameter Type Description
$file_path mixed
$clear_stat_cache mixed

is_valid_file_object

protected is_valid_file_object(mixed $file_name): mixed

Parameters:

Parameter Type Description
$file_name mixed

get_file_object

protected get_file_object(mixed $file_name): mixed

Parameters:

Parameter Type Description
$file_name mixed

get_file_objects

protected get_file_objects(mixed $iteration_method = 'get_file_object'): mixed

Parameters:

Parameter Type Description
$iteration_method mixed

count_file_objects

protected count_file_objects(): mixed

get_error_message

protected get_error_message(mixed $error): mixed

Parameters:

Parameter Type Description
$error mixed

get_config_bytes

public get_config_bytes(mixed $val): mixed

Parameters:

Parameter Type Description
$val mixed

validate_image_file

protected validate_image_file(mixed $uploaded_file, mixed $file, mixed $error, mixed $index): mixed

Parameters:

Parameter Type Description
$uploaded_file mixed
$file mixed
$error mixed
$index mixed

validate

protected validate(mixed $uploaded_file, mixed $file, mixed $error, mixed $index, mixed $content_range): mixed

Parameters:

Parameter Type Description
$uploaded_file mixed
$file mixed
$error mixed
$index mixed
$content_range mixed

upcount_name_callback

protected upcount_name_callback(mixed $matches): mixed

Parameters:

Parameter Type Description
$matches mixed

upcount_name

protected upcount_name(mixed $name): mixed

Parameters:

Parameter Type Description
$name mixed

get_unique_filename

protected get_unique_filename(mixed $file_path, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index, mixed $content_range): mixed

Parameters:

Parameter Type Description
$file_path mixed
$name mixed
$size mixed
$type mixed
$error mixed
$index mixed
$content_range mixed

get_valid_image_extensions

protected get_valid_image_extensions(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

fix_file_extension

protected fix_file_extension(mixed $file_path, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index, mixed $content_range): mixed

Parameters:

Parameter Type Description
$file_path mixed
$name mixed
$size mixed
$type mixed
$error mixed
$index mixed
$content_range mixed

trim_file_name

protected trim_file_name(mixed $file_path, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index, mixed $content_range): mixed

Parameters:

Parameter Type Description
$file_path mixed
$name mixed
$size mixed
$type mixed
$error mixed
$index mixed
$content_range mixed

get_file_name

protected get_file_name(mixed $file_path, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index, mixed $content_range): mixed

Parameters:

Parameter Type Description
$file_path mixed
$name mixed
$size mixed
$type mixed
$error mixed
$index mixed
$content_range mixed

get_scaled_image_file_paths

protected get_scaled_image_file_paths(mixed $file_name, mixed $version): mixed

Parameters:

Parameter Type Description
$file_name mixed
$version mixed

gd_get_image_object

protected gd_get_image_object(mixed $file_path, mixed $func, mixed $no_cache = false): mixed

Parameters:

Parameter Type Description
$file_path mixed
$func mixed
$no_cache mixed

gd_set_image_object

protected gd_set_image_object(mixed $file_path, mixed $image): mixed

Parameters:

Parameter Type Description
$file_path mixed
$image mixed

gd_destroy_image_object

protected gd_destroy_image_object(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

gd_imageflip

protected gd_imageflip(mixed $image, mixed $mode): mixed

Parameters:

Parameter Type Description
$image mixed
$mode mixed

gd_orient_image

protected gd_orient_image(mixed $file_path, mixed $src_img): mixed

Parameters:

Parameter Type Description
$file_path mixed
$src_img mixed

gd_create_scaled_image

protected gd_create_scaled_image(mixed $file_name, mixed $version, mixed $options): mixed

Parameters:

Parameter Type Description
$file_name mixed
$version mixed
$options mixed

imagick_get_image_object

protected imagick_get_image_object(mixed $file_path, mixed $no_cache = false): mixed

Parameters:

Parameter Type Description
$file_path mixed
$no_cache mixed

imagick_set_image_object

protected imagick_set_image_object(mixed $file_path, mixed $image): mixed

Parameters:

Parameter Type Description
$file_path mixed
$image mixed

imagick_destroy_image_object

protected imagick_destroy_image_object(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

imagick_orient_image

protected imagick_orient_image(mixed $image): mixed

Parameters:

Parameter Type Description
$image mixed

imagick_create_scaled_image

protected imagick_create_scaled_image(mixed $file_name, mixed $version, mixed $options): mixed

Parameters:

Parameter Type Description
$file_name mixed
$version mixed
$options mixed

imagemagick_create_scaled_image

protected imagemagick_create_scaled_image(mixed $file_name, mixed $version, mixed $options): mixed

Parameters:

Parameter Type Description
$file_name mixed
$version mixed
$options mixed

get_image_size

protected get_image_size(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

create_scaled_image

protected create_scaled_image(mixed $file_name, mixed $version, mixed $options): mixed

Parameters:

Parameter Type Description
$file_name mixed
$version mixed
$options mixed

destroy_image_object

protected destroy_image_object(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

imagetype

protected imagetype(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

is_valid_image_file

protected is_valid_image_file(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

has_image_file_extension

protected has_image_file_extension(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

handle_image_file

protected handle_image_file(mixed $file_path, mixed $file): mixed

Parameters:

Parameter Type Description
$file_path mixed
$file mixed

handle_file_upload

protected handle_file_upload(mixed $uploaded_file, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index = null, mixed $content_range = null): mixed

Parameters:

Parameter Type Description
$uploaded_file mixed
$name mixed
$size mixed
$type mixed
$error mixed
$index mixed
$content_range mixed

readfile

protected readfile(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

body

protected body(mixed $str): mixed

Parameters:

Parameter Type Description
$str mixed

protected header(mixed $str): mixed

Parameters:

Parameter Type Description
$str mixed

get_upload_data

protected get_upload_data(mixed $id): mixed

Parameters:

Parameter Type Description
$id mixed

get_post_param

protected get_post_param(mixed $id): mixed

Parameters:

Parameter Type Description
$id mixed

get_query_param

protected get_query_param(mixed $id): mixed

Parameters:

Parameter Type Description
$id mixed

get_server_var

protected get_server_var(mixed $id): mixed

Parameters:

Parameter Type Description
$id mixed

handle_form_data

protected handle_form_data(mixed $file, mixed $index): mixed

Parameters:

Parameter Type Description
$file mixed
$index mixed

get_version_param

protected get_version_param(): mixed

get_singular_param_name

protected get_singular_param_name(): mixed

get_file_name_param

protected get_file_name_param(): mixed

get_file_names_params

protected get_file_names_params(): mixed

get_file_type

protected get_file_type(mixed $file_path): mixed

Parameters:

Parameter Type Description
$file_path mixed

download

protected download(): mixed

send_content_type_header

protected send_content_type_header(): mixed

send_access_control_headers

protected send_access_control_headers(): mixed

generate_response

public generate_response(mixed $content, mixed $print_response = true): mixed

Parameters:

Parameter Type Description
$content mixed
$print_response mixed

get_response

public get_response(): mixed

public head(): mixed

get

public get(mixed $print_response = true): mixed

Parameters:

Parameter Type Description
$print_response mixed

post

public post(mixed $print_response = true): mixed

Parameters:

Parameter Type Description
$print_response mixed

delete

public delete(mixed $print_response = true): mixed

Parameters:

Parameter Type Description
$print_response mixed

basename

protected basename(mixed $filepath, mixed $suffix = null): mixed

Parameters:

Parameter Type Description
$filepath mixed
$suffix mixed


Automatically generated on 2025-03-18