Jaime Montoya
Jaime Montoya

Reputation: 7711

Where does Moodle store the files that users upload for their assignments?

Imagine that a user uploads a file called "myAssignment.docx" to Moodle to complete the submission of an assignment. Where would the folder containing "myAssignment.docx" be? Is it in the moodledata folder outside the public web directory or somewhere else? I am trying to locate that folder because I want to monitor its growth to determine when I should upgrade my web hosting service to provide more storage space for files that students upload to the server.

Upvotes: 2

Views: 14758

Answers (2)

user11040091
user11040091

Reputation: 1

It is stored in /repository directory from Ver 3.62.

You may have subdirectories. Check which one is used for the purpose.

Upvotes: 0

davosmith
davosmith

Reputation: 6317

https://docs.moodle.org/dev/File_API_internals#File_storage_on_disk

The simple answer is inside:

$CFG->dataroot.'/filedir'

Upvotes: 4

Related Questions