- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/ui/fileinputunclouder.php
- Класс: BitrixMainUIFileInputUnclouder
- Вызов: FileInputUnclouder::exec
public function exec($mode = "basic", $params = array())
{
$res = $this->check($params);
if ($this->check($params))
{
$this->file = CFile::getFileArray($this->id);
if ($mode == "resize")
{
$file = CFile::ResizeImageGet($this->file, $params, BX_RESIZE_IMAGE_PROPORTIONAL, true, false, true);
if ($file)
{
$this->file["SRC"] = $file["src"];
$this->file["WIDTH"] = $file["width"];
$this->file["HEIGHT"] = $file["height"];
$this->file["FILE_SIZE"] = $file["size"];
}
}
CFile::ViewByUser($this->file, array("force_download" => false, "cache_time" => 0));
}
}