Created
May 23, 2020 14:42
-
-
Save BedrosovaYulia/6236a44c2d9299a6e6ead21e9437951c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$arr_file=Array( | |
"name" => $_FILES[IMAGE_ID][name], | |
"size" => $_FILES[IMAGE_ID][size], | |
"tmp_name" => $_FILES[IMAGE_ID][tmp_name], | |
"type" => "", | |
"old_file" => "", | |
"del" => "Y", | |
"MODULE_ID" => "iblock"); | |
$fid = CFile::SaveFile($arr_file, "landings"); | |
if ($fid>0): | |
?><?echo CFile::ShowImage($fid, 200, 200, "border=0", "", true); | |
endif; | |
?> | |
<form method = "post" enctype = 'multipart/form-data'> | |
<?echo CFile::InputFile("IMAGE_ID", 20, $str_IMAGE_ID);?> | |
<input type="submit" value="Сохранить"> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment