Create file alias using API by Евгений Мамаев - Monday, 16 March 2020, 9:34 PM Number of replies: 1 I have a file in a course. I need to create an alias of this file in another course using File API.Can anyone give me a hint on this? Average of ratings: - Permalink Reply In reply to Евгений Мамаев Re: Create file alias using API by Евгений Мамаев - Monday, 16 March 2020, 9:49 PM By now I have found a file_storage class in /lib/filestorage/file_storage.php. It has method create_file_from_reference($filerecord, $repositoryid, $reference, $options = array())$reference is the original file to which I can create a link/alias Average of ratings: - Permalink Show parent Reply
In reply to Евгений Мамаев Re: Create file alias using API by Евгений Мамаев - Monday, 16 March 2020, 9:49 PM By now I have found a file_storage class in /lib/filestorage/file_storage.php. It has method create_file_from_reference($filerecord, $repositoryid, $reference, $options = array())$reference is the original file to which I can create a link/alias Average of ratings: - Permalink Show parent Reply