Jan 29 2008
Moodle’s Filtering of Uploaded Files
Last week we had a faculty member upload an HTML photo gallery to his course in Moodle. Suddenly, the pages that had looked just fine offline were a mess within Moodle. A little digging revealed that Moodle was adding on the site’s style sheets to the uploaded files. Since the HTML documents in question didn’t have local styles for all of the Moodle ones, the layout exploded.
The reason for this? We had set “filteruploadedfiles” to “all” (this option is located under Administration > Appearance > Filter Settings > Filter uploaded files). When it’s turned on, Moodle will add the site CSS — but not the site headers and footers — to any HTML page that’s been uploaded to it.
It’s also used for automatic linking filtersĀ (glossary, hyperlinks, etc.) so if you turn it off, you’ll lose that sort of filtering onĀ uploaded HTML pages as well. We don’t anticipate that will be a problem however; the addition of the extra CSS to the page is.