extractor working with mongo and file upload