Fixed Segmenter to upload to a given path from a given file