mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
📂 Add MIME type restrictions for 'main' media collection in ProjectProposal
This commit is contained in:
@@ -67,6 +67,12 @@ class ProjectProposal extends Model implements HasMedia
|
||||
$this
|
||||
->addMediaCollection('main')
|
||||
->singleFile()
|
||||
->acceptsMimeTypes([
|
||||
'image/jpeg',
|
||||
'image/png',
|
||||
'image/gif',
|
||||
'image/webp',
|
||||
])
|
||||
->useFallbackUrl(asset('einundzwanzig-alpha.jpg'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user