We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 878a8e4 commit 5be9a5cCopy full SHA for 5be9a5c
1 file changed
system/HTTP/Files/UploadedFile.php
@@ -400,7 +400,7 @@ public function isValid(): bool
400
*/
401
public function store(string $folderName = null, string $fileName = null): string
402
{
403
- $folderName = $folderName ?? date('Ymd') . DIRECTORY_SEPARATOR;
+ $folderName = rtrim($folderName ?? date('Ymd'), '/') . '/' ;
404
$fileName = $fileName ?? $this->getRandomName();
405
406
// Move the uploaded file to a new location.
0 commit comments