Index: branches/5.1.x/core/units/helpers/file_helper.php =================================================================== diff -u -N -r13667 -r13750 --- branches/5.1.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 13667) +++ branches/5.1.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 13750) @@ -1,6 +1,6 @@ create default image fields - $image_names = Array ('Primary'.$field_prefix => ''); $image_count = $this->Application->ConfigValue($prefix.'_MaxImageCount'); - $created_count = 1; - while ($created_count < $image_count) { - $image_names[$field_prefix.$created_count] = ''; - $created_count++; + if ($is_image) { + $created_count = 1; + $image_names = Array ('Primary' . $field_prefix => ''); + + while ($created_count < $image_count) { + $image_names[$field_prefix . $created_count] = ''; + $created_count++; + } } + else { + $created_count = 0; + $image_names = Array (); + while ($created_count < $image_count) { + $image_names[$field_prefix . ($created_count + 1)] = ''; + $created_count++; + } + } + $this->createUploadFields($prefix, $image_names, $is_image); return ; }