Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteeef89a

Browse files
author
FalkWolsky
committed
Fixing AssetService - after Falk broke it.
1 parent3476223 commiteeef89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎server/api-service/lowcoder-domain/src/main/java/org/lowcoder/domain/asset/service/AssetServiceImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Mono<Asset> upload(Part filePart, int maxFileSizeKB, boolean isThumbnail)
6161

6262
// The reason we restrict file types here is to avoid having to deal with dangerous image types such as SVG,
6363
// which can have arbitrary HTML/JS inside of them.
64-
64+
finalMediaTypecontentType =filePart.headers().getContentType();
6565
if (contentType ==null || !ALLOWED_CONTENT_TYPES.contains(contentType)) {
6666
returnMono.error(newBizException(BizError.INVALID_PARAMETER,"INCORRECT_IMAGE_TYPE"));
6767
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp