directory separator
This commit is contained in:
parent
4b3e461928
commit
16c0a7c544
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue