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:
@@ -151,10 +151,12 @@ class BookCaseTable extends DataTableComponent
|
||||
$orangePill
|
||||
->addMedia($this->photo)
|
||||
->preservingOriginal()
|
||||
->usingFileName(md5($this->photo->getClientOriginalName()).'.'.$this->photo->getClientOriginalExtension())
|
||||
->toMediaCollection('images');
|
||||
$orangePill->load(['media']);
|
||||
$this->currentModal
|
||||
->addMedia($this->photo)
|
||||
->usingFileName(md5($this->photo->getClientOriginalName()).'.'.$this->photo->getClientOriginalExtension())
|
||||
->toMediaCollection('images');
|
||||
if ($this->orangepill['comment']) {
|
||||
$this->currentModal->comment($this->orangepill['comment'], null);
|
||||
|
||||
Reference in New Issue
Block a user