-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.3.4
-
None
-
MOODLE_23_STABLE
Students are getting an error when trying to upload docx file types for assignments. The receive the error "Word document filetype cannot be accepted"
I think the below code is the issue:
Default exception handler: Can not create file "4067/user/draft/171905518///1-B.docx" Debug:
INSERT INTO mdl_files (contextid,component,filearea,itemid,filepath,filename,timecreated,timemodified,mimetype,userid,source,author,license,status,sortorder,filesize,contenthash,pathnamehash) OUTPUT inserted.id VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => '4067',
1 => 'user',
2 => 'draft',
3 => 171905518,
4 => '/',
5 => '1-B.docx',
6 => 1360219176,
7 => 1360219176,
8 => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
9 => '2823',
10 => 'O:8:"stdClass":1:
',
11 => 'Patrick Schmelzle',
12 => 'allrightsreserved',
13 => 0,
14 => 0,
15 => 15139,
16 => 'c4af8416810d6ef136b1bc574b452cb261282467',
17 => 'f1221ec9e8a1f7b030d83be9700dcec76c29d568',
)]
Error code: storedfilenotcreated
- line 1045 of \lib\filestorage\file_storage.php: stored_file_creation_exception thrown
- line 224 of \repository\upload\lib.php: call to file_storage->create_file_from_pathname()
- line 62 of \repository\upload\lib.php: call to repository_upload->process_upload()
- line 319 of \repository\repository_ajax.php: call to repository_upload->upload()
- duplicates
-
MDL-37853 Error on upload: word document filetype cannot be accepted
-
- Closed
-