ignore empty mime_types

This commit is contained in:
2023-09-29 12:00:01 +10:00
parent 3b6b4dc388
commit 8affea3360

View File

@@ -998,11 +998,6 @@ class Media extends Model
}
public static function verifyStorage($mime_type, $security_type, &$storage): int {
if($mime_type === '') {
return Media::STORAGE_MIME_MISSING;
}
Log::info('verify: ' . $storage);
if($storage === '') {
if($security_type === '') {
if (strpos($mime_type, 'image/') === 0) {