Maybe, you're looking for Security_recommendations#Most_secure/paranoid_file_permissions.
Visvanath Ratnaweera
Posts made by Visvanath Ratnaweera
Congratulations! 
They must have been sitting there for years. From memory, Moodle had this bug, when people paste images in Word first and then copy-and-paste from there on Atto, it converted the images to base64. The nasty thing is, unlike uploaded images (videos?) which are saved only once in the repository these database "blobs" get duplicated when people duplicate the resources. Combine that with the tendency of Moodle to multiplicate question categories, imagine having one such image in a question! That is the explanation I have for the close to 29,000 base64 blobs in our database.
They must have been sitting there for years. From memory, Moodle had this bug, when people paste images in Word first and then copy-and-paste from there on Atto, it converted the images to base64. The nasty thing is, unlike uploaded images (videos?) which are saved only once in the repository these database "blobs" get duplicated when people duplicate the resources. Combine that with the tendency of Moodle to multiplicate question categories, imagine having one such image in a question! That is the explanation I have for the close to 29,000 base64 blobs in our database.
Hi Mark
Thanks for the feedback. I'm not (yet) testing directly. The colleague who tried it on a Moodle clone said it mostly works but taking ages, some took 2 days it seems.
What I expect is a reduction in the size of the database, since the same base64 data appears in many places. When its trough the filedir/ should increase by a little, since the same file is saved only once in the filedir/.
Yes, difficult not to get angry.
Thanks for the feedback. I'm not (yet) testing directly. The colleague who tried it on a Moodle clone said it mostly works but taking ages, some took 2 days it seems.
What I expect is a reduction in the size of the database, since the same base64 data appears in many places. When its trough the filedir/ should increase by a little, since the same file is saved only once in the filedir/.
Yes, difficult not to get angry.
I've found hundreds of Base64 encoded images in the database! Typical signature is pages stored with images like this:
<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUh..
Moodle version 4.1 LTS. I believe these records are very old.
Found this plug-in: https://github.com/catalyst/moodle-tool_encoded. Isn't it too good to be true? Is it really capable of decoding the image, save it in the repository and replace the src with a link to the file?