Skip to content

Commit 0dc32fc

Browse files
authored
Prefixed file destination to the storage basePath
1 parent c14b208 commit 0dc32fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ public static function store(string $key, string $destination, array $configs =
592592
}
593593

594594
$fileSystem = new \Leaf\FS;
595-
$uploadedFile = $fileSystem::uploadFile(self::get($key), $destination, $configs);
595+
$uploadedFile = $fileSystem::uploadFile(self::get($key), StoragePath($destination), $configs);
596596
if(!$uploadedFile)
597597
return (object) [
598598
'status' => false,
@@ -629,7 +629,7 @@ public static function storeAs(string $key, string $destination, string $filenam
629629
}
630630

631631
$fileSystem = new \Leaf\FS;
632-
$uploadedFile = $fileSystem::uploadFile(self::get($key), $destination, $configs);
632+
$uploadedFile = $fileSystem::uploadFile(self::get($key), storagePath($destination), $configs);
633633
if(!$uploadedFile)
634634
return (object) [
635635
'status' => false,

0 commit comments

Comments
 (0)