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:
@@ -74,6 +74,7 @@ class VenueForm extends Component
|
||||
if ($this->images && count($this->images) > 0) {
|
||||
foreach ($this->images as $item) {
|
||||
$this->venue->addMedia($item)
|
||||
->usingFileName(md5($item->getClientOriginalName()).'.'.$item->getClientOriginalExtension())
|
||||
->toMediaCollection('images');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user