detect File Type
Tries to detect the FileFormat of input using mediumKey and targetedFormats. This mechanism is thus implemented per basis for each processor.
Most of the time, the naive approach is taken and the mechanism just uses the file extension without reading any magic numbers (which can be expensive).