Home php 1C Bitrix Iblock Getting Links to Downloaded File

1C Bitrix Iblock Getting Links to Downloaded File

Author

Date

Category

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

Discussion on this method

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions