Totara Learn Open Discussions

HTML files force downloaded / blank content

 
Filip Wu
HTML files force downloaded / blank content
von Filip Wu – Wednesday, 5. February 2025, 05:15
 

Hi community,


I'm having problems in opening html files in a course. I tried to upload a html file via a file resource item, but no matter how I have the Appearance-Display set to 'Embed', 'Open', or 'In pop-up', the html file always gets downloaded automatically, and all I can see is a blank box / pop-up window.


Has anyone experienced this kind of issue before?



Best regards,

Filip

Schlagworte:
Craig Eves
Re: HTML files force downloaded / blank content
von Craig Eves (Totara Support) – Tuesday, 11. February 2025, 17:36
Gruppe Totara

Hi Filip

For security reasons, the ability to embed advanced HTML in Totara has been removed by default see https://totara.help/docs/embed-advanced-html for more details

Regards

Ulises Avendaño Cano
Re: HTML files force downloaded / blank content
von Ulises Avendaño Cano – Wednesday, 5. March 2025, 11:50
Gruppe Partners

Hi, I have the same problem, I already did what was suggested in the documentation:

1. Go to Quick-access menu > Security > Security settings.

2. Tick the Disable consistent cleaning setting.

3. Click Save changes.

In addition to this I also added this to my config.php file

$CFG->disable_forced_html_download = 1;

but it still doesn't work, it appears blank and downloads the index.html

Any suggestions?? or will this functionality no longer work on totara 19