UploadHandlerZP
extends UploadHandler
in package
jQuery File Upload Plugin PHP Class based on the https://github.com/blueimp/jQuery-File-Upload
with ZenphotoCMS customisations
Copyright 2010, Sebastian Tschan https://blueimp.net
Licensed under the MIT license: https://opensource.org/licenses/MIT
Table of Contents
Constants
- IMAGETYPE_GIF = 'image/gif'
- IMAGETYPE_JPEG = 'image/jpeg'
- IMAGETYPE_PNG = 'image/png'
Properties
- $error_messages : mixed
- $image_objects : mixed
- $options : mixed
- $response : mixed
Methods
- __construct() : mixed
- delete() : mixed
- generate_response() : mixed
- get() : mixed
- get_config_bytes() : mixed
- get_response() : mixed
- head() : mixed
- post() : mixed
- basename() : mixed
- body() : mixed
- count_file_objects() : mixed
- create_scaled_image() : mixed
- destroy_image_object() : mixed
- download() : mixed
- fix_file_extension() : mixed
- fix_integer_overflow() : mixed
- gd_create_scaled_image() : mixed
- gd_destroy_image_object() : mixed
- gd_get_image_object() : mixed
- gd_imageflip() : mixed
- gd_orient_image() : mixed
- gd_set_image_object() : mixed
- get_download_url() : mixed
- get_error_message() : mixed
- get_file_name() : mixed
- get_file_name_param() : mixed
- get_file_names_params() : mixed
- get_file_object() : mixed
- get_file_objects() : mixed
- get_file_size() : mixed
- get_file_type() : mixed
- get_full_url() : mixed
- get_image_size() : mixed
- get_post_param() : mixed
- get_query_param() : mixed
- get_query_separator() : mixed
- get_scaled_image_file_paths() : mixed
- get_server_var() : mixed
- get_singular_param_name() : mixed
- get_unique_filename() : mixed
- get_upload_data() : mixed
- get_upload_path() : mixed
- get_user_id() : mixed
- get_user_path() : mixed
- get_valid_image_extensions() : mixed
- get_version_param() : mixed
- handle_file_upload() : mixed
- handle_form_data() : mixed
- handle_image_file() : mixed
- has_image_file_extension() : mixed
- header() : mixed
- imagemagick_create_scaled_image() : mixed
- imagetype() : mixed
- imagick_create_scaled_image() : mixed
- imagick_destroy_image_object() : mixed
- imagick_get_image_object() : mixed
- imagick_orient_image() : mixed
- imagick_set_image_object() : mixed
- initialize() : mixed
- is_valid_file_object() : mixed
- is_valid_image_file() : mixed
- readfile() : mixed
- send_access_control_headers() : mixed
- send_content_type_header() : mixed
- set_additional_file_properties() : mixed
- trim_file_name() : mixed
- upcount_name() : mixed
- upcount_name_callback() : mixed
- validate() : mixed
- validate_image_file() : mixed
Constants
IMAGETYPE_GIF
public
mixed
IMAGETYPE_GIF
= 'image/gif'
IMAGETYPE_JPEG
public
mixed
IMAGETYPE_JPEG
= 'image/jpeg'
IMAGETYPE_PNG
public
mixed
IMAGETYPE_PNG
= 'image/png'
Properties
$error_messages
protected
mixed
$error_messages
= array()
$image_objects
protected
mixed
$image_objects
= array()
$options
protected
mixed
$options
$response
protected
mixed
$response
= array()
Methods
__construct()
public
__construct([mixed $options = null ][, mixed $initialize = true ][, mixed $error_messages = null ]) : mixed
Parameters
- $options : mixed = null
- $initialize : mixed = true
- $error_messages : mixed = null
delete()
public
delete([mixed $print_response = true ]) : mixed
Parameters
- $print_response : mixed = true
generate_response()
public
generate_response(mixed $content[, mixed $print_response = true ]) : mixed
Parameters
- $content : mixed
- $print_response : mixed = true
get()
public
get([mixed $print_response = true ]) : mixed
Parameters
- $print_response : mixed = true
get_config_bytes()
public
get_config_bytes(mixed $val) : mixed
Parameters
- $val : mixed
get_response()
public
get_response() : mixed
head()
public
head() : mixed
post()
public
post([mixed $print_response = true ]) : mixed
Parameters
- $print_response : mixed = true
basename()
protected
basename(mixed $filepath[, mixed $suffix = null ]) : mixed
Parameters
- $filepath : mixed
- $suffix : mixed = null
body()
protected
body(mixed $str) : mixed
Parameters
- $str : mixed
count_file_objects()
protected
count_file_objects() : mixed
create_scaled_image()
protected
create_scaled_image(mixed $file_name, mixed $version, mixed $options) : mixed
Parameters
- $file_name : mixed
- $version : mixed
- $options : mixed
destroy_image_object()
protected
destroy_image_object(mixed $file_path) : mixed
Parameters
- $file_path : mixed
download()
protected
download() : 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
- $file_path : mixed
- $name : mixed
- $size : mixed
- $type : mixed
- $error : mixed
- $index : mixed
- $content_range : mixed
fix_integer_overflow()
protected
fix_integer_overflow(mixed $size) : mixed
Parameters
- $size : mixed
gd_create_scaled_image()
protected
gd_create_scaled_image(mixed $file_name, mixed $version, mixed $options) : mixed
Parameters
- $file_name : mixed
- $version : mixed
- $options : mixed
gd_destroy_image_object()
protected
gd_destroy_image_object(mixed $file_path) : mixed
Parameters
- $file_path : mixed
gd_get_image_object()
protected
gd_get_image_object(mixed $file_path, mixed $func[, mixed $no_cache = false ]) : mixed
Parameters
- $file_path : mixed
- $func : mixed
- $no_cache : mixed = false
gd_imageflip()
protected
gd_imageflip(mixed $image, mixed $mode) : mixed
Parameters
- $image : mixed
- $mode : mixed
gd_orient_image()
protected
gd_orient_image(mixed $file_path, mixed $src_img) : mixed
Parameters
- $file_path : mixed
- $src_img : mixed
gd_set_image_object()
protected
gd_set_image_object(mixed $file_path, mixed $image) : mixed
Parameters
- $file_path : mixed
- $image : mixed
get_download_url()
protected
get_download_url(mixed $file_name[, mixed $version = null ][, mixed $direct = false ][, mixed $imageobj = null ]) : mixed
Parameters
- $file_name : mixed
- $version : mixed = null
- $direct : mixed = false
- $imageobj : mixed = null
get_error_message()
protected
get_error_message(mixed $error) : mixed
Parameters
- $error : 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
- $file_path : mixed
- $name : mixed
- $size : mixed
- $type : mixed
- $error : mixed
- $index : mixed
- $content_range : mixed
get_file_name_param()
protected
get_file_name_param() : mixed
get_file_names_params()
protected
get_file_names_params() : mixed
get_file_object()
protected
get_file_object(mixed $file_name) : mixed
Parameters
- $file_name : mixed
get_file_objects()
protected
get_file_objects([mixed $iteration_method = 'get_file_object' ]) : mixed
Parameters
- $iteration_method : mixed = 'get_file_object'
get_file_size()
protected
get_file_size(mixed $file_path[, mixed $clear_stat_cache = false ]) : mixed
Parameters
- $file_path : mixed
- $clear_stat_cache : mixed = false
get_file_type()
protected
get_file_type(mixed $file_path) : mixed
Parameters
- $file_path : mixed
get_full_url()
protected
get_full_url() : mixed
get_image_size()
protected
get_image_size(mixed $file_path) : mixed
Parameters
- $file_path : mixed
get_post_param()
protected
get_post_param(mixed $id) : mixed
Parameters
- $id : mixed
get_query_param()
protected
get_query_param(mixed $id) : mixed
Parameters
- $id : mixed
get_query_separator()
protected
get_query_separator(mixed $url) : mixed
Parameters
- $url : mixed
get_scaled_image_file_paths()
protected
get_scaled_image_file_paths(mixed $file_name, mixed $version) : mixed
Parameters
- $file_name : mixed
- $version : mixed
get_server_var()
protected
get_server_var(mixed $id) : mixed
Parameters
- $id : mixed
get_singular_param_name()
protected
get_singular_param_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
- $file_path : mixed
- $name : mixed
- $size : mixed
- $type : mixed
- $error : mixed
- $index : mixed
- $content_range : mixed
get_upload_data()
protected
get_upload_data(mixed $id) : mixed
Parameters
- $id : mixed
get_upload_path()
protected
get_upload_path([mixed $file_name = null ][, mixed $version = null ]) : mixed
Parameters
- $file_name : mixed = null
- $version : mixed = null
get_user_id()
protected
get_user_id() : mixed
get_user_path()
protected
get_user_path() : mixed
get_valid_image_extensions()
protected
get_valid_image_extensions(mixed $file_path) : mixed
Parameters
- $file_path : mixed
get_version_param()
protected
get_version_param() : 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
- $uploaded_file : mixed
- $name : mixed
- $size : mixed
- $type : mixed
- $error : mixed
- $index : mixed = null
- $content_range : mixed = null
handle_form_data()
protected
handle_form_data(mixed $file, mixed $index) : mixed
Parameters
- $file : mixed
- $index : mixed
handle_image_file()
protected
handle_image_file(mixed $file_path, mixed $file) : mixed
Parameters
- $file_path : mixed
- $file : mixed
has_image_file_extension()
protected
has_image_file_extension(mixed $file_path) : mixed
Parameters
- $file_path : mixed
header()
protected
header(mixed $str) : mixed
Parameters
- $str : mixed
imagemagick_create_scaled_image()
protected
imagemagick_create_scaled_image(mixed $file_name, mixed $version, mixed $options) : mixed
Parameters
- $file_name : mixed
- $version : mixed
- $options : mixed
imagetype()
protected
imagetype(mixed $file_path) : mixed
Parameters
- $file_path : mixed
imagick_create_scaled_image()
protected
imagick_create_scaled_image(mixed $file_name, mixed $version, mixed $options) : mixed
Parameters
- $file_name : mixed
- $version : mixed
- $options : mixed
imagick_destroy_image_object()
protected
imagick_destroy_image_object(mixed $file_path) : mixed
Parameters
- $file_path : mixed
imagick_get_image_object()
protected
imagick_get_image_object(mixed $file_path[, mixed $no_cache = false ]) : mixed
Parameters
- $file_path : mixed
- $no_cache : mixed = false
imagick_orient_image()
protected
imagick_orient_image(mixed $image) : mixed
Parameters
- $image : mixed
imagick_set_image_object()
protected
imagick_set_image_object(mixed $file_path, mixed $image) : mixed
Parameters
- $file_path : mixed
- $image : mixed
initialize()
protected
initialize() : mixed
is_valid_file_object()
protected
is_valid_file_object(mixed $file_name) : mixed
Parameters
- $file_name : mixed
is_valid_image_file()
protected
is_valid_image_file(mixed $file_path) : mixed
Parameters
- $file_path : mixed
readfile()
protected
readfile(mixed $file_path) : mixed
Parameters
- $file_path : mixed
send_access_control_headers()
protected
send_access_control_headers() : mixed
send_content_type_header()
protected
send_content_type_header() : mixed
set_additional_file_properties()
protected
set_additional_file_properties(mixed $file) : mixed
Parameters
- $file : 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
- $file_path : mixed
- $name : mixed
- $size : mixed
- $type : mixed
- $error : mixed
- $index : mixed
- $content_range : mixed
upcount_name()
protected
upcount_name(mixed $name) : mixed
Parameters
- $name : mixed
upcount_name_callback()
protected
upcount_name_callback(mixed $matches) : mixed
Parameters
- $matches : mixed
validate()
protected
validate(mixed $uploaded_file, mixed $file, mixed $error, mixed $index, mixed $content_range) : mixed
Parameters
- $uploaded_file : mixed
- $file : mixed
- $error : mixed
- $index : mixed
- $content_range : mixed
validate_image_file()
protected
validate_image_file(mixed $uploaded_file, mixed $file, mixed $error, mixed $index) : mixed
Parameters
- $uploaded_file : mixed
- $file : mixed
- $error : mixed
- $index : mixed