Skip to content

Commit 639e6ae

Browse files
committed
Fixed upload command normalizePath method
1 parent 8efe8a2 commit 639e6ae

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
@@ -71,8 +71,8 @@ public function handle(Repository $config)
7171
*/
7272
protected function normalizePath($path)
7373
{
74-
if( $this->path == '/' ) return '/';
74+
if( $path == '/' ) return '/';
7575

76-
return ltrim($this->path, '/');
76+
return ltrim($path, '/');
7777
}
7878
}

0 commit comments

Comments
 (0)