Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ids добавляется в свойства инфоблока.
if(isset($_FILES)) {
$ids = array();
foreach($_FILES as $key=>$file) {
$file_params = array(
'name'=>$file['name'],
'size'=>$file['size'],
'tmp_name'=>$file['tmp_name'],
"type" => "",
"old_file" => "",
"del" => "",
"MODULE_ID" => "iblock");
$id = CFile::SaveFile($file_params, "iblock");
if($id)
$ids[] = $id;
}
}
echo "<pre>"; print_r($ids); echo "<pre>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.