Yesterday I've implemented the filemanager functionality in my block. I succeeded to store picture files to mdl_files table and to show the already stored pictures using the file_postupdate_standard_filemanager() and file_prepare_standard_filemanager().
And here comes the problem...
How can I show/render these pictures on the front end???
I was researching the whole day and I've come to the conclusion that maybe file_rewrite_pluginfile_urls() is the right function to use, but I was unable to run it properly. It expects a text param that converts to url maybe, but I don't think I have any text to pass.
Can somebody please give me some clarification how to achieve my goal here?
Thanks in advance.