Skip to content

Commit 30f6900

Browse files
committed
thumbnail creation for media manager component [patch-2]
Fix thumbnail creation failure when file is uploaded not in root folder..
1 parent 737ac8e commit 30f6900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Darryldecode/Backend/Components/MediaManager/Commands/UploadCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function handle(Repository $config,Image $image)
6666
$file->getClientOriginalName()
6767
);
6868

69-
$filePath = $config->get('filesystems.disks.local.root').'/'.$this->normalizePath($path).$file->getClientOriginalName();
69+
$filePath = $config->get('filesystems.disks.local.root').'/'.$this->normalizePath($path).'/'.$file->getClientOriginalName();
7070
$file_name = pathinfo($filePath, PATHINFO_FILENAME);
7171
$extension = pathinfo($filePath, PATHINFO_EXTENSION);
7272

@@ -81,7 +81,7 @@ public function handle(Repository $config,Image $image)
8181
$filePath,
8282
$dimension[0],
8383
$dimension[1],
84-
$config->get('filesystems.disks.local.root').'/'.$this->normalizePath($path).$this->produceThumbFileName($file_name,$key,$extension)
84+
$config->get('filesystems.disks.local.root').'/'.$this->normalizePath($path).'/'.$this->produceThumbFileName($file_name,$key,$extension)
8585
);
8686
}
8787
}

0 commit comments

Comments
 (0)