Closed (won't fix)
Project:
Drupal core
Version:
x.y.z
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2006 at 23:34 UTC
Updated:
29 Apr 2006 at 01:09 UTC
upload_save:validate is outputing an extra 'upload_N' (i.e. 'upload_0' and 'upload_1' when there's only one file upload). This is countered by a check for is_numeric() in upload_save() (line 414 in current HEAD), but that shouldn't be necessary. The problem seems to originate in the following code in upload_nodeapi:validate (starting on line 250 in HEAD):
$key = 'upload_'. count($_SESSION['file_uploads']);
$file->source = $key;
$file->list = 1;
$file = file_save_upload($file);
$node->files[$key] = $file;
Or, it could be the nonsensical file_check_upload('upload') on line 210 in HEAD. This caused the problems described in comment 51 and 53 of http://drupal.org/node/31354.
Comments
Comment #1
dopry commented@Junyor is this still an issue?
Comment #2
dopry commentedThere is no erratic behavior to reproduce. And Junyor hasn't gotten back with anything reproducable. setting won't fix.