|
|
@@ -38,7 +38,7 @@ public class MinioClientImpl {
|
|
|
* @throws Exception Exception
|
|
|
*/
|
|
|
public String upload(InputStream inputStream, int size, String name) throws Exception {
|
|
|
- String extension = name.lastIndexOf(".") == -1 ? "" : name.substring(name.lastIndexOf(".") + 1);
|
|
|
+ String extension = name.lastIndexOf(".") == -1 ? "" : name.substring(name.lastIndexOf(".") + 1).toLowerCase();
|
|
|
JSONObject mime = FastjsonUtils.parseObject(COMMON_MIME);
|
|
|
String contentType = DEFAULT_MIME;
|
|
|
String objectName = UUID.randomUUID().toString();
|