-
Bug
-
Resolution: Fixed
-
Major
-
3.3.2
-
MOODLE_33_STABLE
-
MOODLE_33_STABLE
-
MDL-60319-master-google-converter-bug -
The google converter function in Moodle is not converting the plain-text in the Online text submission. It will be nice to add this functionality. I opened the discussion at https://moodle.org/mod/forum/discuss.php?d=359324 and here is my solution
I edited the file
files/converter/googledrive/classes/converter.php
and edited the converter class. I added the txt extension
private static $imports = [
'doc' => 'application/vnd.google-apps.document',
'docx' => 'application/vnd.google-apps.document',
'rtf' => 'application/vnd.google-apps.document',
'xls' => 'application/vnd.google-apps.spreadsheet',
'xlsx' => 'application/vnd.google-apps.spreadsheet',
'ppt' => 'application/vnd.google-apps.presentation',
'pptx' => 'application/vnd.google-apps.presentation',
'txt' => 'application/vnd.google-apps.document'
];
and also added txt in the array of get_supported_conversions(), line 269
public function get_supported_conversions() {
return implode(', ', ['rtf', 'doc', 'xls', 'docx', 'xlsx', 'ppt', 'pptx', 'pdf', 'txt']);
{{ }}}
I checked the code and it works without any problem.
Added by Jake Dallimore:
In addition to the above problem, any files submitted (assuming file submissions AND online text are both enabled on the assignment) are not displayed either because of the online text conversion failure. This is reported in but I'm hopeful changes here will resolve that too. Please see This comment for a full list of what's not working with the g drive converter.MDL-60251
- has a non-specific relationship to
-
MDL-60251 PDF Generation Doesn't display when Online Text enabled (Google Drive converter)
- Closed
-
MDL-60008 File won't render in the grader if both submission types are selected
- Closed
- has been marked as being related by
-
MDL-55789 Empty online text can be confusing with unoconv
- Closed