Closed (fixed)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2006 at 08:53 UTC
Updated:
15 Sep 2006 at 23:30 UTC
I've found, that the file is not uploading. Module not creating preview, just doing nothing visible.
I had such issue in imagefield plugin for CCK, so I tried this one here too. And it solves the issue. Here it is.
filefield.module line 338:
before
case 'form':
$form = _filefield_widget_form($node, $field, $node_field);
return $form;
after
case 'form':
if (is_array($_SESSION['filefield'][$fieldname]) && count($_SESSION['filefield'][$fieldname])) {
foreach($_SESSION['filefield'][$fieldname] as $delta => $file) {
$node_field[] = $file;
}
}
$form = _filefield_widget_form($node, $field, $node_field);
return $form;
Comments
Comment #1
dopry commentedplease post unified diff format patches.... In the meantime I've committed this. tnx
Comment #2
(not verified) commented