Skip to content

Commit

Permalink
Remove check for empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
franksn90 committed Aug 25, 2024
1 parent 7849035 commit 1aff528
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ class TempFileUtils {
return try {
if (fileName.contains("..")) {
throw Exception("Filename contains invalid path sequence: $fileName")
} else if (file.isEmpty) {
throw Exception(String.format("The uploaded file <%s> is empty.", fileName))
}
val content = file.bytes
createFile(path, fileName, content)
Expand Down

0 comments on commit 1aff528

Please sign in to comment.