Added archive support and fixed bug in getting mime type that uploader can handle