Moodle data path

Moodle data path

de Mohamad Mova AlAfghani -
Número de respuestas: 5

Hello, I need to upload some files using command line but I don't know the moodle data path.

Can anyone tell me where it is located?

Moodle version: 3.8.2 (build 20200309) [Packaged in Yunohost]


Thank you

Promedio de valoraciones: -
En respuesta a Mohamad Mova AlAfghani

Re: Moodle data path

de Ken Task -
Imagen de Particularly helpful Moodlers

Path to moodledata is found in config.php file of moodle code.

Uploading from workstation to something that moodle could see involves setting up a file system repo.  Do NOT attempt uploading to moodledata/filedir/.

https://docs.moodle.org/38/en/File_system_repository

Also, one does not need to upload via FTP ... better if using SCP.

+1 to Howard's suggestion about moosh.

'SoS', Ken

En respuesta a Ken Task

Re: Moodle data path

de Howard Miller -
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
I suppose it depends on exactly what the OP was trying to do. Didn't think about File system repo.
En respuesta a Howard Miller

Re: Moodle data path

de Ken Task -
Imagen de Particularly helpful Moodlers

Agreed!  OP will tell us hopefully! sonrisa

'SoS', Ken


En respuesta a Ken Task

Re: Moodle data path [Solved]

de Mohamad Mova AlAfghani -

Found the file directory and used the file system repository!

I was uploading a large size media file for my students to watch. It was too slow if I use the web interface. So I did an SCP from my NAS to the moodle instance.

Thank you for the hints!