moved uploadFile to documentscollection