protected static function DataProviderFile::moveUploadedFile in RESTful 7.2
Helper function that moves an uploaded file.
Parameters
string $filename: The path of the file to move.
string $uri: The path where to move the file.
Return value
bool TRUE if the file was moved. FALSE otherwise.
1 method overrides DataProviderFile::moveUploadedFile()
- DataProviderFileTest::moveUploadedFile in tests/
modules/ restful_test/ src/ Plugin/ resource/ DataProvider/ DataProviderFileTest.php - Helper function that moves an uploaded file.
File
- src/
Plugin/ resource/ DataProvider/ DataProviderFile.php, line 331 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderFile.
Class
- DataProviderFile
- Class DataProviderFile.
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
protected static function moveUploadedFile($filename, $uri) {
return (bool) drupal_move_uploaded_file($filename, $uri);
}