-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.1
-
MOODLE_39_STABLE
On very large sites there is some small base level of temporary file uploading failure.
I don't know the exact cause but I'd guess something like a file is uploaded to php tmp space, then it is moved into a File API .tmp and then by pure bad luck something borks (maybe a php timeout or a container gets reaped?) and the file is never fully copied into the correct place, somewhere around here:
So thinking we want some cleanup task maybe once a week which just looks for all old .tmp files in filedir and deletes them.