mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
md5 media file names
This commit is contained in:
@@ -41,6 +41,7 @@ class CommentBookCase extends Component
|
||||
|
||||
$this->bookCase
|
||||
->addMedia($this->photo)
|
||||
->usingFileName(md5($this->photo->getClientOriginalName()) . '.' . $this->photo->getClientOriginalExtension())
|
||||
->toMediaCollection('images');
|
||||
|
||||
return to_route('bookCases.comment.bookcase', ['country' => $this->country, 'bookCase' => $this->bookCase->id]);
|
||||
|
||||
Reference in New Issue
Block a user