Fixed a bug where a file was copied in the file system, but not in the mongo DB