You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2021. It is now read-only.
"aminyazdanpanah/php-ffmpeg-video-streaming": "aminyazdanpanah/php-ffmpeg-video-streaming is suggested for validate video files and create DASH and HLS files."
Copy file name to clipboardExpand all lines: src/Validate.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ public function validate()
39
39
thrownewException("The file size is " . intval($this->getFileSize() / 1024) . "KB! It must be at least " . intval($this->getMinSize() / 1024) . "KB");
40
40
}
41
41
42
-
if (!in_array($this->getFileExtension(), $this->getType()) && !in_array("*", $this->getType())) {
42
+
if (!in_array(strtolower($this->getFileExtension()), $this->getTypes()) && !in_array("*", $this->getTypes())) {
43
43
thrownewException("Sorry, the \"" . $this->getFileExtension() . "\" files are not allowed! Only " . implode(", ", $this->getType()) . " files are allowed. ");
0 commit comments