$file = new CFile($_FILES['file']); $file->SaveFile('/path/to/directory/', 'filename.extension');In this example, a new instance of the CFile class is created with the uploaded file as its parameter. The SaveFile() method is then called on this instance with the path '/path/to/directory/' and name 'filename.extension', which will save the uploaded file as 'filename.extension' in the '/path/to/directory/' directory. The package/library for this class is likely part of the Bitrix Framework, as CFile is a part of the Bitrix libraries.