修正AJAX beforeupload 类型判断