Skip to content

Commit

Permalink
feat: add more validation to file upload (#18112)
Browse files Browse the repository at this point in the history
* feat: add more validation to file upload

(cherry picked from commit dcbe1dd)
  • Loading branch information
netroms committed Oct 14, 2024
1 parent 53dc895 commit 907e07d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import org.hisp.dhis.feedback.ErrorCode;
import org.hisp.dhis.jsontree.JsonObject;
import org.hisp.dhis.web.HttpStatus;
import org.hisp.dhis.webapi.DhisControllerConvenienceTest;
import org.hisp.dhis.webapi.json.domain.JsonWebMessage;
import org.junit.jupiter.api.Test;
import org.springframework.core.io.ClassPathResource;
import org.springframework.mock.web.MockMultipartFile;

class FileResourceControllerTest extends DhisControllerConvenienceTest {
Expand Down

0 comments on commit 907e07d

Please sign in to comment.