Moodle: Where do old file uploads go after changing the file?
Submitted by rogier.wijnands on Tue, 06/29/2021 - 12:10
Forums:
In several content types it is possible to upload a file from the computer to the content. For example; in the Interactive Video content type it is possible to upload the video from the computer. What happens if I remove the upload from the content type or if I change the uploaded video to a different video? Will the file be removed from the Moodle files folder or will it still exist somewhere? We don't want the Moodle data folder to be bloated, so we want to make sure the file will be deleted after changing it.
BV52
Tue, 06/29/2021 - 19:21
Permalink
Hi rogier.wijnands,Afaik the
Hi rogier.wijnands,
Afaik the old video once replaced in the content is also deleted from Moodle's database.
-BV
rogier.wijnands
Wed, 06/30/2021 - 08:44
Permalink
Thanks for your response!
Thanks for your response! Does this mean just the reference in the database, or is the actual file also deleted from the Moodle data folder?
BV52
Wed, 06/30/2021 - 18:33
Permalink
Hi rogier.wijnands,The actual
Hi rogier.wijnands,
The actual file is deleted although I'm not 100% sure. I am no Moodle expert however knowing the structure of how H5P handles the video it cannot have 2 videos inside the content.
-BV