Forums | Mahara Community

Developers /
Export files and folders to server

Mark  Melia's profile picture
Posts: 8

15 November 2010, 5:26

Hi everyone,

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?


Stacey Walker's profile picture
Posts: 39

15 November 2010, 9:20

Hi Mark,

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,


Mark  Melia's profile picture
Posts: 8

16 November 2010, 5:35

Thats great Stacey - Thanks!

Kristina Hoeppner's profile picture
Posts: 4093

20 November 2010, 23:27

Hi Mark,

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



4 results