remove empty mime_type ignore

This commit is contained in:
2023-09-29 11:57:54 +10:00
parent ad6e4f0a23
commit 9a9e75d96d

View File

@@ -986,10 +986,6 @@ class Media extends Model
} }
public static function recommendedStorage(string $mime_type, string $security_type): string { public static function recommendedStorage(string $mime_type, string $security_type): string {
if($mime_type === '') {
return 'cdn';
}
if($security_type === '') { if($security_type === '') {
if (strpos($mime_type, 'image/') === 0) { if (strpos($mime_type, 'image/') === 0) {
return('local'); return('local');