๐ง [STMT-146] ํ์ผ ์ ๋ก๋ ๊ธฐ๋ฅ ์ฝ๋ ๋ฆฌ๋ทฐ ๋ฐ์ #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
๐ ํด๊ฒฐํ๋ ค๋ ๋ฌธ์ ๋ฅผ ์ ์ด์ฃผ์ธ์
๐ค ์ด๋ค ๋ฐฉ์์ผ๋ก ํด๊ฒฐํ๋์ง ์ ์ด์ฃผ์ธ์
BusinessException
์ ์์๋ฐ๋NotImplementedException
๋ฅผ ๊ตฌํํ์ฌ ๊ตฌํ๋์ง ์์ ๋ฉ์๋ ์ฌ์ฉ ์ ์์ธ ๋์ง๊ธฐoriginalFileName
์์ ๋ฌธ์์ด์ ์ถ์ถํ๋ ๊ฒ๋ณด๋ค๋contentType
์ ๊ฐ์ ธ์ ๊ฒ์ฌํ๋ ๊ฒ์ด ๋ซ๋ค๊ณ ํ๋จํ์ฌ ์์ ํ์์ต๋๋ค.๐ ์ค์ ์ ์ผ๋ก ๋ฆฌ๋ทฐ ํ์ผ๋ฉด ํ๋ ๋ถ๋ถ์ด ์๋ค๋ฉด ์ ์ด์ฃผ์ธ์
GlobalExceptionController
์ ์์WARN_LOG_MESSAGE
๋ฅผ ๊ฐ์ ธ์์ ์ฌ์ฉํด๋ ๋๋์ง, ์๋๋ ์ด์ ๊ฐ ์๋ค๋ฉด ์ด๋ป๊ฒ ๊ตฌํํ๋ฉด ์ข์์ง.Constant
ํด๋์ค๋ฅผ ๊ตฌํํ๋ ๋ฐฉ๋ฒ์ ์๊ฐํ์ต๋๋ค.ValidImageContentType
์ ํจํค์ง ์์นFileUtil
๊ณผ ๊ด๋ จ๋ ํ์ผ์ด๋ utils์ ๋ฃ์๋๋ฐ ๋น์ฆ๋์ค ๊ท์น๊ณผ ์ฐ๊ด๋ ํด๋์ค์ธ๋ฏ๋ ํ์ฌ ์ด๋์ ์์น์์ผ์ผ ํ ์ง ๊ณ ๋ฏผ์ด ๋ฉ๋๋ค.