Raymond we have the same agenda. Mine is to develop a page that will allow teachers to upload their syllabus, store the metadata into the database using a particular course module. The syllabus uploaded should be automatically positioned on Week 0 of a particular course. I can do all the positioning of the data in Week 0 as well as store metadata in correlated tables via code behind, my only problem is to save the syllabus physically to the moodledata and reflect it back to the course using FileAPI.
The reason behind why this is done on the page I had developed is so that I could trigger a field that this particular course had uploaded a syllabus. Later on, it is easy for me to generate a report of all courses who never uploaded a syllabus.