This PHP class uploads files and manipulates images very easily. It is in fact as much as an image processing class than it is an upload class. Compatible with PHP 4, 5, 7 and 8. Supports processing of local files, uploaded files, files sent through XMLHttpRequest.
I had actually fixed this myself when I was manually uploading class.upload.php, but I recently installed via Composer instead, so I figured I'd ask to get this fixed directly, especially for the sake of anyone else. I'm new to GitHub, so don't know the best practice to get fixes in...
Basically $this->mime_types = array() needs to also include 'mp4' => 'video/mp4', so that $handle->allowed = array('image/*', 'video/*'); can actually allow mp4 uploads.
I had actually fixed this myself when I was manually uploading class.upload.php, but I recently installed via Composer instead, so I figured I'd ask to get this fixed directly, especially for the sake of anyone else. I'm new to GitHub, so don't know the best practice to get fixes in...
Basically
$this->mime_types = array()
needs to also include'mp4' => 'video/mp4',
so that$handle->allowed = array('image/*', 'video/*');
can actually allow mp4 uploads.