verot / class.upload.php

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.
http://www.verot.net/php_class_upload.htm
GNU General Public License v2.0
853 stars 359 forks source link

Allowed video/* Doesn't Include MP4 #167

Closed parrycarry closed 1 year ago

parrycarry commented 1 year ago

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.

verot commented 1 year ago

Fixed in 76866f3