Function fails if uploading a non-supported mime-type
Added jar as a supported mime type. Jar files can now be uploaded to the media library