Commit 8d345b8b authored by Your Name's avatar Your Name

#20228 дополнил условие для файла

parent aa64af09
......@@ -735,7 +735,7 @@ if (CModule::IncludeModule("iblock"))
$arUpdatePropertyValues[$propertyID][$key] = $arFile;
}
if(($arParams["MAX_FILE_SIZE"] > 0) && ($arFile["size"] > $arParams["MAX_FILE_SIZE"]))
if(($arParams["MAX_FILE_SIZE"] > 0) && (($arFile["size"] > $arParams["MAX_FILE_SIZE"]) || ($arFile["error"] == 2)) )
$arResult["ERRORS"][$propertyID] = GetMessage("IBLOCK_ERROR_FILE_TOO_LARGE");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment