Skip to content

Commit

Permalink
Chore: multipartfile null check
Browse files Browse the repository at this point in the history
  • Loading branch information
5jisoo committed Jul 3, 2024
1 parent d1fd491 commit d6c3afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/apps/pochak/global/s3/S3Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class S3Service {
private String bucket;

public String upload(MultipartFile multipartFile, DirName dirName) {
if (multipartFile == null)
if (multipartFile.isEmpty())
throw new GeneralException(NULL_FILE);
try {
File uploadFile = convert(multipartFile)
Expand Down

0 comments on commit d6c3afd

Please sign in to comment.