diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 47693dc35d..7bde96810c 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -596,7 +596,7 @@ App::post('/v1/storage/buckets/:bucketId/files') // Save to storage $size = $device->getFileSize($file['tmp_name']); $path = $device->getPath(\uniqid().'.'.\pathinfo($file['name'], PATHINFO_EXTENSION)); - $path = $bucket->getId() . '/' . $path; + $path = $bucket->getId() . DIRECTORY_SEPARATOR . $path; if (!$device->upload($file['tmp_name'], $path)) { // TODO deprecate 'upload' and replace with 'move' throw new Exception('Failed moving file', 500);