Forums | Mahara Community
Export files and folders to server
15 November 2010, 5:26
I am trying to add functionality that will allow people to send files and folders to a server, for example an institutional repository. I am putting this functionality in the filebrowser. My problem is that I am not sure how to get a file from an artefact. Can anyone help me out?
15 November 2010, 9:20
Calling $artefact->get_path() on an ArtefactTypeFile instance or one of the subclasses will return a full path including the config value 'dataroot'.
I hope this helps,
16 November 2010, 5:35
Thats great Stacey - Thanks!
20 November 2010, 23:27
Are you at the same time also adding functionality for the other way around, i.e. using files from a repository in Mahara? There's been a discussion at http://mahara.org/interaction/forum/topic.php?id=147