mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Upload path regression caused by 3d24079
This commit is contained in:
parent
6ba7b2e3d8
commit
caecc05b0b
@ -134,7 +134,7 @@ class Upload extends Controller {
|
||||
$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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user