drupal_move_uploaded_file

function drupal_move_uploaded_file

drupal_move_uploaded_file($filename, $uri)

Moves an uploaded file to a new location.

Deprecated

in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::moveUploadedFile().

Related topics

File interface
Common file handling functions.