Hmmm.
I am not sure why uploaded pages should be wrapped in a template. That is an interesting idea.
The download links should just lead straight to the fodlers:
/file-storage/folder/filename.doc or whatever.
Relative linking of uploaded html content would also work in this case.