Skip to content

Commit

Permalink
Upload path regression caused by 3d24079
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Feb 19, 2014
1 parent 6ba7b2e commit caecc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filesystem/Upload.php
Expand Up @@ -134,7 +134,7 @@ public function load($tmpFile, $folderPath = false) {
$file = $nameFilter->filter($tmpFile['name']);
$fileName = basename($file);

$relativeFilePath = $parentFolder->getRelativePath() . "/$fileName";
$relativeFilePath = $parentFolder ? $parentFolder->getRelativePath() . "$fileName" : $fileName;

// Create a new file record (or try to retrieve an existing one)
if(!$this->file) {
Expand Down

0 comments on commit caecc05

Please sign in to comment.