Commit 8bf69b53 authored by catch's avatar catch

Issue #2938853 by mcdruid: Remove outdated and misleading comment re. temp...

Issue #2938853 by mcdruid: Remove outdated and misleading comment re. temp directory from file_save_upload
parent f30938d3
......@@ -1017,9 +1017,6 @@ function file_save_upload($form_field_name, $validators = [], $destination = FAL
continue;
}
// Move uploaded files from PHP's upload_tmp_dir to Drupal's temporary
// directory. This overcomes open_basedir restrictions for future file
// operations.
$file->setFileUri($file->destination);
if (!drupal_move_uploaded_file($file_info->getRealPath(), $file->getFileUri())) {
drupal_set_message(t('File upload error. Could not move uploaded file.'), 'error');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment