comments on new uploaded files were discarded

This commit is contained in:
alpeb 2004-03-04 17:49:42 +00:00
parent ff4f8c8b3a
commit 9c81163db4

View File

@ -1160,7 +1160,7 @@
'size' => $_FILES['upload_file']['size'][$i],
'mime_type' => $_FILES['upload_file']['type'][$i],
'deleteable' => 'Y',
'comment' => stripslashes($upload_comment[$i])
'comment' => stripslashes($_POST['upload_comment'][$i])
)
);
$this->bo->vfs->set_attributes($tmp_arr);
@ -1188,7 +1188,7 @@
'relatives' => array(RELATIVE_ALL),
'attributes'=> array(
'mime_type' => $_FILES['upload_file']['type'][$i],
'comment' => stripslashes($upload_comment[$i])
'comment' => stripslashes($_POST['upload_comment'][$i])
)
));
@ -1207,7 +1207,7 @@
'relatives' => array(RELATIVE_ALL),
'attributes'=> array(
'mime_type' => $_FILES['upload_file']['type'][$i],
'comment' => $upload_comment[$i]
'comment' => stripslashes($_POST['upload_comment'][$i])
)
));