Forums | Mahara Community
16 March 2009, 9:32 AM
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.
16 March 2009, 9:50 AM
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.
16 March 2009, 1:38 PM
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.
16 March 2009, 6:35 PMHeh, glad you found it looking at the code in artefact/file/lib.php is the best way to work out where the file data goes.