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.
However, you can do it in the code (there are two instances of strtolower($extension.....).
Note that you can also get the filename, after calling process(), reading $handle->file_dst_name, $handle->file_dst_name_body and $handle->file_dst_name_ext to know what is the new filename.Reply
However, you can do it in the code (there are two instances of strtolower($extension.....).
Note that you can also get the filename, after calling process(), reading $handle->file_dst_name, $handle->file_dst_name_body and $handle->file_dst_name_ext to know what is the new filename.