This issue is driving me absolutely mad.
I just had my server provider upgrade my Moodle site version 1.9.7 upgraded to 2.5.1
In the old version I was able to upload html files that I had created externally and which from a course page were accessible via links. I could then edit these html files directly within the Moodle file manager.
Now on the new version I do not seem to be able to edit these html files so I do it on my desktop with Textedit and then upload the new file directly into 'Legacy course files' overwriting where the originals were stored.
So to get around it I edit the code outside and drop the html files back in. Then for some reason the url links to images, pdfs, and videos or any new links that I have added forced to change from file.php to brokenfile.php
Help would be greatly appreciated.