by Ken Task.
Interesting stats, but what do they actually do to find the problem?
Assignments in 3.8.x have settings now for restricting what students can turn in/upload. Have you checked those settings?
New file system (since 2.0) is really a combo of meta data in DB that point to moodledata/filedir ... filenames are actually contenthash values ... no humanly recognizable names contained in moodedata/filedir/
This to suggest using some DB queries - for example ... to find all references to a .docx
mysql> select filename,filesize,contenthash from mdl_files where filename like '%.docx';
which will display something like:
| conversion_test.docx | 11065 | 6faee9e044dcb1d3629e270a5f34e77b1ed620f9 |
| file-sample_1MB.docx | 1026736 | 688c74675f84ecae08b1f73c19875af264e34f74 |
| exportTemplate.docx | 76761 | 7bb12d92cdb1abafae32c4363bba3965078b0f0c |
| file-sample_1MB.docx | 1026736 | 688c74675f84ecae08b1f73c19875af264e34f74 |
Then from ssh/terminal logged on and in moodledata/filedir/ do a find for the contenthash ...
example using the last .docx above:
[root@server filedir]# find ./ -name 688c74675f84ecae08b1f73c19875af264e34f74
Results show:
./68/8c/688c74675f84ecae08b1f73c19875af264e34f74
now a quick check of file size:
ls -l ./68/8c/688c74675f84ecae08b1f73c19875af264e34f74
as per example shows byte size of 1026736 ... that's correct!
Now quick check as to file type:
file -b ./68/8c/688c74675f84ecae08b1f73c19875af264e34f74
Remember the file is a .docx
Above responds with:
file -b ./68/8c/688c74675f84ecae08b1f73c19875af264e34f74
Zip archive data, at least v2.0 to extract
which looks wrong, but it's not .... a docx really is a zipped file.
A 0 byte file entry???? Never heard of it before.
You will see a bunch with this query:
mysql> select filename,filesize,contenthash from mdl_files where filesize like '0';
but notice filename is a 'dot' ... looks like:
| filename | filesize | contenthash |
+----------+----------+------------------------------------------+
| . | 0 | da39a3ee5e6b4b0d3255bfef95601890afd80709 |
notice the 'dot';
[root@sos filedir]# find ./ -name da39a3ee5e6b4b0d3255bfef95601890afd80709
./da/39/da39a3ee5e6b4b0d3255bfef95601890afd80709
[root@sos filedir]# file -b ./da/39/da39a3ee5e6b4b0d3255bfef95601890afd80709
empty
True ... should be empty as a 'dot' is part of operating system file system ...
Do we have anything running on server for anti-virus? ClamAV?
Then there is also what devices students were using to upload. ????
Browser or Moodle app?
So .... ????
'SoS', Ken