move($tmpDir, $file->getClientOriginalName()); $result = $scanner->setFile($tmpFile) ->scan(ScanConfiguration::make( owner: $uploader, makePublic: $uploader->preferences->makeUploadsPublic )); throw_if($result->isError(), new SongUploadFailedException($result->error)); return $result; } }