We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
貌似好像不支持自定义文件后缀的上传,如.wld,上传报错空指针
The text was updated successfully, but these errors were encountered:
请确认该格式存在正确的MIME,因为post上传是需要获取到MIME type的,这个过程默认由BaseOkHttpV3代理获取,但若不是已知的MIME则可能出现问题
Sorry, something went wrong.
非已知MIME,为自定义后缀,请问如何解决
public static String getMimeType(File file) { String suffix = getSuffix(file); if (suffix == null) { return "file/*"; } String type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(suffix); if (type != null || !type.isEmpty()) { return type; } return "file/*"; }
No branches or pull requests
貌似好像不支持自定义文件后缀的上传,如.wld,上传报错空指针
The text was updated successfully, but these errors were encountered: