diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-06 23:34:25 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-06 23:34:25 +0400 |
| commit | 2b4eebf2f2711a962f417fceeb54d681ef41a4ce (patch) | |
| tree | c4be1c2bb171a2c31d386de0ac4b2dde1dcac6e1 | |
| parent | aed48748a8b20639c966c5e57d59730eea00c6db (diff) | |
fix: i should have used $path here
| -rw-r--r-- | lib/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file.php b/lib/file.php index 4fcb607..d8f740e 100644 --- a/lib/file.php +++ b/lib/file.php @@ -11,7 +11,7 @@ function verify_mimetype(string $file_path, string $mimetype): bool } else if (str_starts_with($mimetype, 'video/') || str_starts_with($mimetype, 'audio/')) { $output = []; $exitCode = 0; - $cmd = 'ffprobe -v error -i "/path/to/video.mp4" 2>&1'; + $cmd = "ffprobe -v error -i $path 2>&1"; exec($cmd, $output, $exitCode); return $exitCode === 0; } |
