#77870Method moveTo in UploadedFile not implemented correctly according to PSR-7
Description
The method moveTo in TYPO3\CMS\Core\Http\UploadedFile should move the uploaded file to $target but is instead moved to $targetPath . basename($this->file), where $this->file is the temporary uploaded file.
The documentation for the moveTo method states that $targetPath is the “Path to which to move the uploaded file” and while it does not state that this path should be the path to the file and not just the folder, the accompanying example shows uses the path with a filename:
$file0->moveTo(DATA_DIR . '/' . $filename);
This is an issue in both 7.6.10 and 8.2.1
This issue is files as “bug” as it is an incorrect implementation of an interface.