I can not get a link to the downloaded file. IBLOCK has already implemented downloading files to the server, I’m trying to get a link to the downloaded file in the init.php file. I can not get.
Who can help?
iblock event
addeventhandler ('iblock', 'onatteriblockelementadd', 'my_onafteriblockelementadd');
Answer 1
CFile :: getpath ($ alelement ["preview_picture"]);
In $ alement [“preview_picture”] must be a file ID
Taken from