Added feature: save files in stream to mongo