Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Using the File API

From MoodleDocs
Redirect page