Add function for file insertion
Add function for file insertion

This code is actually repeated in cnx-archive.
Refactoring should enable it to use the same function
at some later time.

Connexions/cnx-publishing,Connexions/cnx-publishing,Connexions/cnx-publishing