mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
normalize filenames
This commit is contained in:
@@ -47,7 +47,7 @@ class BitcoinEventForm extends Component
|
||||
if (!$this->bitcoinEvent) {
|
||||
$this->bitcoinEvent = new BitcoinEvent(
|
||||
[
|
||||
'description' => '',
|
||||
'description' => '',
|
||||
'show_worldwide' => true,
|
||||
]
|
||||
);
|
||||
@@ -76,6 +76,7 @@ class BitcoinEventForm extends Component
|
||||
|
||||
if ($this->image) {
|
||||
$this->bitcoinEvent->addMedia($this->image)
|
||||
->usingFileName(md5($this->image->getClientOriginalName()).'.'.$this->image->getClientOriginalExtension())
|
||||
->toMediaCollection('logo');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user