Спасибо. А что-то в коде менять надо, я так понимаю, в этом куске:
case 2: // File
$aFileData = Core_Array::getFiles("property_{$oProperty->id}", array());
// New values of property
if (is_array($aFileData) && isset($aFileData['name']))
{
foreach ($aFileData['name'] as $key => $sFileName)
{
$oFileValue = $oProperty->createNewValue($oShop_Item->id);
if (Core_File::isValidExtension($sFileName, array('JPG', 'JPEG', 'GIF', 'PNG', 'PDF')))
{
$oFileValue->file_name = Core_Str::stripTags($sFileName);
$oFileValue->file_small_name = Core_Str::stripTags($sFileName);
$oFileValue->save();
try
{
$oShop_Item_Property_List->createPropertyDir($oShop_Item);
Core_Image::instance()->resizeImage($aFileData['tmp_name'][$key], $oShop->image_large_max_width, $oShop->image_large_max_height, $oShop_Item_Property_List->getDirPath($oShop_Item) . $oShop_Item_Property_List->getLargeFileName($oShop_Item, $oFileValue, $sFileName));
$oFileValue->file = $oShop_Item_Property_List->getLargeFileName($oShop_Item, $oFileValue, $sFileName);
Core_Image::instance()->resizeImage($aFileData['tmp_name'][$key], $oShop->image_small_max_width, $oShop->image_small_max_height, $oShop_Item_Property_List->getDirPath($oShop_Item) . $oShop_Item_Property_List->getSmallFileName($oShop_Item, $oFileValue, $sFileName));
$oFileValue->file_small = $oShop_Item_Property_List->getSmallFileName($oShop_Item, $oFileValue, $sFileName);
$oFileValue->save();
}
catch (Exception $e) {};
}
}
}