Closed
Description
I was testing a page to upload files, and logged the resulting file paths to see if it worked. I obtained the path like this:
$uploadDir = 'app/tmp/uploads/'
$file = $this->uploadedFile->move($uploadDir, $filename);
$file->getPathname();
The resulting path was something like this (notice the double slash): /path/to/app/tmp/uploads//myfile.tmp
I think the culprit might be this line: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/File/File.php#L140
Maybe you could do rtrim($directory, '/')
.