Finished the first version of the Upload Method

Not tested, I created it at work.
File is checked and a mime type is returned, this is compared and the
correct upload method is called or an error is outputted.