Can you please tell me where all the files stored in moodle 2?

Can you please tell me where all the files stored in moodle 2?

by yuki yuki -
Number of replies: 4
In moodle 2 I would like to restore a course backup file but the size of the file is near 500 MB so I would like to manually upload it to server folder by copying and then using file picker would like to link it but the problem is where to upload that file.

In moodle 9 we have file folder structure /moodledata

but seems in moodle 2 its changed.

Can you please tell me where all the files stored in moodle 2?
Average of ratings: -
In reply to yuki yuki

Re: Can you please tell me where all the files stored in moodle 2?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You can't do that in Moodle 2. As files have to be tagged by the filesystem, even if you found the correct place it would not show up.

What you could do is to enable the "File System" repository which lets you upload files into a designated folder under moodledata.
In reply to Howard Miller

Re: Can you please tell me where all the files stored in moodle 2?

by Adam Lossing -

Where do we find the page to "enable the file system repository" ?

In reply to yuki yuki

Re: Can you please tell me where all the files stored in moodle 2?

by Britt Bassett -

They are not under the html root, but at the "FTP" root in the folder called "moodledata" and in a subfolder there called "repository".

Files and folder there are directly reachable via the File Picker, but are not reachable via direct html links.

If you use the File Picker to select a file in the repository, then change that file, the changed file will not be picked up; so beware.