? 357469-4-axyjo.patch Index: includes/file.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/file.inc,v retrieving revision 1.152 diff -r1.152 file.inc 930a931,940 > // Move uploaded files from PHP's upload_tmp_dir to Drupal's temporary > // directory. This overcomes open_basedir restrictions for future file > // operations. > $file->filepath = $file->destination; > if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->filepath)) { > form_set_error($source, t('File upload error. Could not move uploaded file.')); > watchdog('file', 'Upload error. Could not move uploaded file %file to destination %destination.', array('%file' => $file->filename, '%destination' => $file->filepath)); > return FALSE; > } > 950,959d959 < // Move uploaded files from PHP's upload_tmp_dir to Drupal's temporary < // directory. This overcomes open_basedir restrictions for future file < // operations. < $file->filepath = $file->destination; < if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->filepath)) { < form_set_error($source, t('File upload error. Could not move uploaded file.')); < watchdog('file', 'Upload error. Could not move uploaded file %file to destination %destination.', array('%file' => $file->filename, '%destination' => $file->filepath)); < return FALSE; < } <