class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
See all posts Reply
$handle->auto_create_dir = FALSE; $handle->allowed = array('image/jpeg','image/gif','image/png'); $handle->no_script = TRUE; #security convert script to harmless $handle->file_safe_name= TRUE; #Remove Name Spaces $handle->file_overwrite= TRUE; $handle->mime_check = TRUE; #security //$handle->mime_magic_check = TRUE; //Don't trust dependant on server setup see docs $handle->no_script = TRUE; #security //$handle->image_ratio_x = TRUE; $handle->image_ratio = TRUE; $handle->image_resize = TRUE; $handle->image_ratio_no_zoom_in = TRUE; # added 25 $handle->file_max_size = (int)$ImageArr['Size']; // 1024 = 1KB $handle->image_y = (int)$ImageArr['Y']; $handle->image_x = (int)$ImageArr['X'];
Thanks this class is hot!
If you think the class is hot, feel free to donate, it will make me feel all warm inside ;)