upload files to node and index them through mongodb