drupal_move_uploaded_file($filename, $uri)
Moves an uploaded file to a new location.
in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::moveUploadedFile().
function drupal_move_uploaded_file($filename, $uri) { return \Drupal::service('file_system')->moveUploadedFile($filename, $uri); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!file.inc/function/drupal_move_uploaded_file/8.1.x