Fixed uploading files, fixed checking mime type - upload ajaxpage