|
|
|
@@ -224,9 +224,9 @@ public class UploadController extends BaseController { |
|
|
|
} |
|
|
|
TenantEntity tenantEntity = getTenantInfo(); |
|
|
|
String content = uploadReq.getContent(); |
|
|
|
String suffix = "JPG"; |
|
|
|
String suffix = ".JPG"; |
|
|
|
if (content.contains(";")) { |
|
|
|
suffix = content.split(";")[0].split("/")[1]; |
|
|
|
suffix = "."+content.split(";")[0].split("/")[1]; |
|
|
|
content = content.split(",")[1]; |
|
|
|
} |
|
|
|
byte[] fileBytes = Base64.decodeBase64(content); |
|
|
|
|