Forums | Mahara Community

Developers /
Accessing Files


anonymous profile picture
Account deleted
Posts: 10

16 March 2009, 9:32

Hi all,

 I would like access and retrieve all files from each user and populate another form that I am creating. 

 How can I access the files? Witch folder the files are stored? and Witch table are stored name and details of files?

 Thanks in advance.

John Mendes 

anonymous profile picture
Account deleted
Posts: 10

16 March 2009, 9:50

I know that: The name of files are stored in :

tbl_artefact and the column artefacttype receive file or image

the relation between image/file and blogpost is the table tbl_artefact_blog_blogpost_file and tbl_artefact_file_image

but, I am do not  finding the folder witch the files are being stored.

Any help? 

anonymous profile picture
Account deleted
Posts: 10

16 March 2009, 13:38

OK, I found the path and understood how it works (at leat the basics).

The files are in /var/maharadata. I do know if it is correct folder/path for all.

Each file is renamed for the ID in  tbl_artefact and because it I could not find the files.

Thanks everyone.

 John Mendes 

anonymous profile picture
Account deleted
Posts: 1643

16 March 2009, 18:35

Heh, glad you found it Wink looking at the code in artefact/file/lib.php is the best way to work out where the file data goes.
4 results