From 16c0a7c544a8652e1dbab1df34e70191646bc5fd Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 16 Jan 2022 17:23:02 +0545 Subject: [PATCH] directory separator --- app/controllers/api/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);