Adding mime-types gem to detect mime-types
Refactoring upload methods and specs