$arFILE = $_FILES["File"]; $arFILE["MODULE_ID"] = "iblock"; $fid = CFile::SaveFile($arFILE, "iblock");
$PROPERTY_CODE = "File"; $PROPERTY_VALUE = $fid; CIBlockElement::SetPropertyValues($ELEMENT_ID, $IBLOCK_ID, $PROPERTY_VALUE, $PROPERTY_CODE);