Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
file system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2007 at 10:32 UTC
Updated:
20 Sep 2007 at 22:05 UTC
On fresh Drupal-HEAD (#81468), Drupal doesn't take into account the 'temporary files directory' as set on the 'file system' configuration page.
Instead, all files (including temporary files) are just put in the /files folder directly.
A quick look at the code takes me to file_save_upload with this snippet of code:
<?php
if (!$dest) {
$dest = file_destination(file_create_path($file->filename), FILE_EXISTS_RENAME);
}
?>
... but file_create_path is expecting its argument to be the path, not just the file name.
Presumably caused by rolling file_check_upload into file_save_upload.
Comments
Comment #1
drewish commentedi think this is a duplicate of http://drupal.org/node/172943