upload pattern file and get information of the patternfile